chiark / gitweb /
setup.py: Use re rather than deprecated sre module.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 21 Sep 2008 15:02:54 +0000 (16:02 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 21 Sep 2008 15:19:11 +0000 (16:19 +0100)
No idea why they decided to do that.

setup.py

index 5408b70..13759e3 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from distutils.core import setup, Extension
 from Pyrex.Distutils import build_ext
 from os import *
 from errno import *
-import sre
+import re
 import sys
 from sys import stdin, stdout, stderr
 
@@ -49,7 +49,7 @@ def needs_update_p(target, sources):
     if stat(s).st_mtime > t_target: return True
   return False
 
-rx_subst = sre.compile(r'\%(\w+)\%')
+rx_subst = re.compile(r'\%(\w+)\%')
 
 def derive(target, src, subs):
   if needs_update_p(target, [src]):