summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-05-19 13:49:16 (GMT)
committerGuido van Rossum <guido@python.org>1992-05-19 13:49:16 (GMT)
commitceb86daa1602a75db4ea851f5d534422768596ac (patch)
treee5652dff8ad700ddef1c78c89b7ff52a4e22b251 /Tools
parent9d741a79c099be13554304b9e4143c35cc5b141e (diff)
downloadcpython-ceb86daa1602a75db4ea851f5d534422768596ac.zip
cpython-ceb86daa1602a75db4ea851f5d534422768596ac.tar.gz
cpython-ceb86daa1602a75db4ea851f5d534422768596ac.tar.bz2
Change the way ignore is assigned to
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/xxci.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/xxci.py b/Tools/scripts/xxci.py
index aef3234..32ef5d1 100755
--- a/Tools/scripts/xxci.py
+++ b/Tools/scripts/xxci.py
@@ -46,10 +46,10 @@ badprefixes = ['.', ',', '@', '#', 'o.']
badsuffixes = \
['~', '.a', '.o', '.old', '.bak', '.orig', '.new', '.prev', '.not', \
'.pyc', '.elc']
+ignore = []
def setup():
- global ignore
- ignore = badnames[:]
+ ignore[:] = badnames
for p in badprefixes:
ignore.append(p + '*')
for p in badsuffixes:
@@ -58,7 +58,7 @@ def setup():
f = open('.xxcign', 'r')
except IOError:
return
- ignore = ignore + string.split(f.read())
+ ignore[:] = ignore + string.split(f.read())
def skipfile(file):
for p in ignore: