From: Mark Wooding Date: Sun, 21 Sep 2008 15:02:54 +0000 (+0100) Subject: setup.py: Use re rather than deprecated sre module. X-Git-Tag: 1.0.1~3 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/commitdiff_plain/244ede1869d2b168cf311bb327a5758d11fc0f66?ds=sidebyside setup.py: Use re rather than deprecated sre module. No idea why they decided to do that. --- diff --git a/setup.py b/setup.py index 5408b70..13759e3 100644 --- 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]):