summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/checkpyc.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/checkpyc.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Tools/scripts/checkpyc.py')
-rwxr-xr-xTools/scripts/checkpyc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/checkpyc.py b/Tools/scripts/checkpyc.py
index 152fb1d..54396a3 100755
--- a/Tools/scripts/checkpyc.py
+++ b/Tools/scripts/checkpyc.py
@@ -10,9 +10,9 @@ def main():
silent = 0
verbose = 0
if sys.argv[1:]:
- if sys.argv[1] = '-v':
+ if sys.argv[1] == '-v':
verbose = 1
- elif sys.argv[1] = '-s':
+ elif sys.argv[1] == '-s':
silent = 1
MAGIC = '\0\0\0\0'
try:
@@ -32,7 +32,7 @@ def main():
print 'Checking', `dirname`, '...'
names.sort()
for name in names:
- if name[-3:] = '.py':
+ if name[-3:] == '.py':
name = path.join(dirname, name)
try:
st = posix.stat(name)
@@ -55,7 +55,7 @@ def main():
print `name_c`
continue
mtime = get_long(mtime_str)
- if mtime = 0 or mtime = -1:
+ if mtime == 0 or mtime == -1:
print 'Bad ".pyc" file', `name_c`
elif mtime <> st[ST_MTIME]:
print 'Out-of-date ".pyc" file',