Kaydet (Commit) 9ca0eca9 authored tarafından Brett Cannon's avatar Brett Cannon

Remove some uses of '<>'.

üst 0e1cff56
......@@ -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] == '///':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment