diff options
Diffstat (limited to 'Tools/scripts/checkpyc.py')
-rwxr-xr-x | Tools/scripts/checkpyc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/checkpyc.py b/Tools/scripts/checkpyc.py index a38bc45..2e8fd5a 100755 --- a/Tools/scripts/checkpyc.py +++ b/Tools/scripts/checkpyc.py @@ -46,19 +46,19 @@ def main(): magic_str = f.read(4) mtime_str = f.read(4) f.close() - if magic_str <> MAGIC: + if magic_str != MAGIC: print('Bad MAGIC word in ".pyc" file', end=' ') print(repr(name_c)) continue mtime = get_long(mtime_str) if mtime == 0 or mtime == -1: print('Bad ".pyc" file', repr(name_c)) - elif mtime <> st[ST_MTIME]: + elif mtime != st[ST_MTIME]: print('Out-of-date ".pyc" file', end=' ') print(repr(name_c)) def get_long(s): - if len(s) <> 4: + if len(s) != 4: return -1 return ord(s[0]) + (ord(s[1])<<8) + (ord(s[2])<<16) + (ord(s[3])<<24) |