summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/MkDistr.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-02 22:02:02 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-02 22:02:02 (GMT)
commitbe614ee732e5b0f292c272372794f940d7e1f4e6 (patch)
tree06af4765d98edcf0b367cfb0abdd415cb9ffae23 /Mac/scripts/MkDistr.py
parentef92edd9036fd446cf5d51fbd8342957dcc3cf60 (diff)
downloadcpython-be614ee732e5b0f292c272372794f940d7e1f4e6.zip
cpython-be614ee732e5b0f292c272372794f940d7e1f4e6.tar.gz
cpython-be614ee732e5b0f292c272372794f940d7e1f4e6.tar.bz2
Use re in stead of regex.
Diffstat (limited to 'Mac/scripts/MkDistr.py')
-rw-r--r--Mac/scripts/MkDistr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/scripts/MkDistr.py b/Mac/scripts/MkDistr.py
index a8728ab..f446b34 100644
--- a/Mac/scripts/MkDistr.py
+++ b/Mac/scripts/MkDistr.py
@@ -16,7 +16,7 @@
#
from MkDistr_ui import *
import fnmatch
-import regex
+import re
import os
import sys
import macfs
@@ -187,7 +187,7 @@ class ExcMatcher(Matcher):
pat = fnmatch.translate(src)
if DEBUG:
print 'PATTERN', `src`, 'REGEX', `pat`
- self.relist.append(regex.compile(pat))
+ self.relist.append(re.compile(pat))
def unrebuild1(self, num, src):
del self.relist[num]
@@ -196,7 +196,7 @@ class ExcMatcher(Matcher):
comps = os.path.split(path)
file = comps[-1]
for pat in self.relist:
- if pat and pat.match(file) == len(file):
+ if pat and pat.match(file):
if DEBUG:
print 'excmatch', file, pat
return 1