diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Tools/scripts/xxci.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Tools/scripts/xxci.py')
-rwxr-xr-x | Tools/scripts/xxci.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/xxci.py b/Tools/scripts/xxci.py index ef4ff11..27bb71d 100755 --- a/Tools/scripts/xxci.py +++ b/Tools/scripts/xxci.py @@ -50,19 +50,19 @@ def skipfile(file): # Skip executables try: data = open(file, 'r').read(len(EXECMAGIC)) - if data = EXECMAGIC: return 1 + if data == EXECMAGIC: return 1 except: pass return 0 def badprefix(file): for bad in badprefixes: - if file[:len(bad)] = bad: return 1 + if file[:len(bad)] == bad: return 1 return 0 def badsuffix(file): for bad in badsuffixes: - if file[-len(bad):] = bad: return 1 + if file[-len(bad):] == bad: return 1 return 0 def go(args): |