Kaydet (Commit) ceb86daa authored tarafından Guido van Rossum's avatar Guido van Rossum

Change the way ignore is assigned to

üst 9d741a79
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment