mirror of
https://github.com/python/cpython.git
synced 2025-01-19 15:05:15 +08:00
Remove some uses of '<>'.
This commit is contained in:
parent
0e1cff56b4
commit
9ca0eca995
@ -13,7 +13,7 @@ class _Environ:
|
||||
return len(riscos.getenvdict())
|
||||
def __getitem__(self, key):
|
||||
ret = riscos.getenv(key)
|
||||
if ret<>None:
|
||||
if ret != None:
|
||||
return ret
|
||||
else:
|
||||
raise KeyError
|
||||
|
@ -14,7 +14,7 @@ def url2pathname(url):
|
||||
"""OS-specific conversion from a relative URL of the 'file' scheme
|
||||
to a file system path; not recommended for general use."""
|
||||
tp = urllib.splittype(url)[0]
|
||||
if tp and tp <> 'file':
|
||||
if tp and tp != 'file':
|
||||
raise RuntimeError, 'Cannot convert non-local URL to pathname'
|
||||
# Turn starting /// into /, an empty hostname means current host
|
||||
if url[:3] == '///':
|
||||
|
Loading…
Reference in New Issue
Block a user