mirror of
https://github.com/python/cpython.git
synced 2025-10-13 18:33:34 +00:00
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.
This commit is contained in:
parent
c140131995
commit
8152d32375
36 changed files with 101 additions and 99 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue