diff Lib/linecache.py @ 15543:785155e2cfca legacy-trunk

Update the code to better reflect recommended style: Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
author Fred Drake <fdrake@acm.org>
date Tue, 12 Dec 2000 23:20:45 +0000
parents b6f52c1ef6da
children 32755b456369
line wrap: on
line diff
--- a/Lib/linecache.py	Tue Dec 12 23:16:51 2000 +0000
+++ b/Lib/linecache.py	Tue Dec 12 23:20:45 2000 +0000
@@ -50,7 +50,7 @@
         except os.error:
             del cache[filename]
             continue
-        if size <> stat[ST_SIZE] or mtime <> stat[ST_MTIME]:
+        if size != stat[ST_SIZE] or mtime != stat[ST_MTIME]:
             del cache[filename]