Remove some uses of '<>'.

This commit is contained in:
Brett Cannon 2006-08-25 01:00:47 +00:00
parent 0e1cff56b4
commit 9ca0eca995
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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] == '///':