Commit 9ca0eca9 authored by Brett Cannon's avatar Brett Cannon

Remove some uses of '<>'.

parent 0e1cff56
...@@ -13,7 +13,7 @@ class _Environ: ...@@ -13,7 +13,7 @@ class _Environ:
return len(riscos.getenvdict()) return len(riscos.getenvdict())
def __getitem__(self, key): def __getitem__(self, key):
ret = riscos.getenv(key) ret = riscos.getenv(key)
if ret<>None: if ret != None:
return ret return ret
else: else:
raise KeyError raise KeyError
......
...@@ -14,7 +14,7 @@ def url2pathname(url): ...@@ -14,7 +14,7 @@ def url2pathname(url):
"""OS-specific conversion from a relative URL of the 'file' scheme """OS-specific conversion from a relative URL of the 'file' scheme
to a file system path; not recommended for general use.""" to a file system path; not recommended for general use."""
tp = urllib.splittype(url)[0] tp = urllib.splittype(url)[0]
if tp and tp <> 'file': if tp and tp != 'file':
raise RuntimeError, 'Cannot convert non-local URL to pathname' raise RuntimeError, 'Cannot convert non-local URL to pathname'
# Turn starting /// into /, an empty hostname means current host # Turn starting /// into /, an empty hostname means current host
if url[:3] == '///': 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