From: Guido van Rossum Date: Tue, 19 May 1992 13:49:16 +0000 (+0000) Subject: Change the way ignore is assigned to X-Git-Tag: v0.9.8~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ceb86daa1602a75db4ea851f5d534422768596ac;p=thirdparty%2FPython%2Fcpython.git Change the way ignore is assigned to --- diff --git a/Tools/scripts/xxci.py b/Tools/scripts/xxci.py index aef3234e802b..32ef5d1e8b0f 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: