summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/xxci.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
commitbdfcfccbe591e15221f35add01132174c9b4e669 (patch)
tree7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Tools/scripts/xxci.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Tools/scripts/xxci.py')
-rwxr-xr-xTools/scripts/xxci.py6
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):