chiark
/
gitweb
/
~mdw
/
mLib-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd3ac9d
)
setup.py: Use re rather than deprecated sre module.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 21 Sep 2008 15:02:54 +0000
(16:02 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
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 *
-import
s
re
+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 =
s
re.compile(r'\%(\w+)\%')
+rx_subst = re.compile(r'\%(\w+)\%')
def derive(target, src, subs):
if needs_update_p(target, [src]):