]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change the way ignore is assigned to
authorGuido van Rossum <guido@python.org>
Tue, 19 May 1992 13:49:16 +0000 (13:49 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 19 May 1992 13:49:16 +0000 (13:49 +0000)
Tools/scripts/xxci.py

index aef3234e802b0b62c77aa83bf95e47409b4d97c2..32ef5d1e8b0f92a51bbdc7f9e5760ab613452d09 100755 (executable)
@@ -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: