chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setup.py: Use re rather than deprecated sre module.
[mLib-python]
/
setup.py
diff --git
a/setup.py
b/setup.py
index 5408b70bc54ccde1a17935c9389f786dade21c1b..13759e39800e65ece3709abcb7c4ab5e42d48cec 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 *
from Pyrex.Distutils import build_ext
from os import *
from errno import *
-import
s
re
+import re
import sys
from sys import stdin, stdout, stderr
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
if stat(s).st_mtime > t_target: return True
return False
-rx_subst =
s
re.compile(r'\%(\w+)\%')
+rx_subst = re.compile(r'\%(\w+)\%')
def derive(target, src, subs):
if needs_update_p(target, [src]):
def derive(target, src, subs):
if needs_update_p(target, [src]):