summaryrefslogtreecommitdiffstats
path: root/Lib/imputil.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-12 23:20:45 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-12 23:20:45 (GMT)
commit8152d32375c40bba9ccbe43b780ebe96d9617781 (patch)
treef10aba5ba6f1e3064b26d2edfd6fffb45378245d /Lib/imputil.py
parentc140131995c67b1cd001b5c27e0095c53b1204b4 (diff)
downloadcpython-8152d32375c40bba9ccbe43b780ebe96d9617781.zip
cpython-8152d32375c40bba9ccbe43b780ebe96d9617781.tar.gz
cpython-8152d32375c40bba9ccbe43b780ebe96d9617781.tar.bz2
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.
Diffstat (limited to 'Lib/imputil.py')
-rw-r--r--Lib/imputil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/imputil.py b/Lib/imputil.py
index d442d9f..0dd7b51 100644
--- a/Lib/imputil.py
+++ b/Lib/imputil.py
@@ -434,7 +434,7 @@ def _os_bootstrap():
path = s
if ':' not in a:
a = ':' + a
- if a[-1:] <> ':':
+ if a[-1:] != ':':
a = a + ':'
return a + b
else:
@@ -643,7 +643,7 @@ def _test_revamp():
# from Guido:
# need to change sys.* references for rexec environs
# need hook for MAL's walk-me-up import strategy, or Tim's absolute strategy
-# watch out for sys.modules[...] == None
+# watch out for sys.modules[...] is None
# flag to force absolute imports? (speeds _determine_import_context and
# checking for a relative module)
# insert names of archives into sys.path (see quote below)