From 8152d32375c40bba9ccbe43b780ebe96d9617781 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 12 Dec 2000 23:20:45 +0000 Subject: 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. --- Lib/dircache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/dircache.py') diff --git a/Lib/dircache.py b/Lib/dircache.py index a35e16d1bc..08b127a1af 100644 --- a/Lib/dircache.py +++ b/Lib/dircache.py @@ -19,7 +19,7 @@ def listdir(path): mtime = os.stat(path)[8] except os.error: return [] - if mtime <> cached_mtime: + if mtime != cached_mtime: try: list = os.listdir(path) except os.error: -- cgit v1.2.1