Skip to content

Commit ceb86da

Browse files
committed
Change the way ignore is assigned to
1 parent 9d741a7 commit ceb86da

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Tools/scripts/xxci.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def getmtime(file):
4646
badsuffixes = \
4747
['~', '.a', '.o', '.old', '.bak', '.orig', '.new', '.prev', '.not', \
4848
'.pyc', '.elc']
49+
ignore = []
4950

5051
def setup():
51-
global ignore
52-
ignore = badnames[:]
52+
ignore[:] = badnames
5353
for p in badprefixes:
5454
ignore.append(p + '*')
5555
for p in badsuffixes:
@@ -58,7 +58,7 @@ def setup():
5858
f = open('.xxcign', 'r')
5959
except IOError:
6060
return
61-
ignore = ignore + string.split(f.read())
61+
ignore[:] = ignore + string.split(f.read())
6262

6363
def skipfile(file):
6464
for p in ignore:

0 commit comments

Comments
 (0)