[Python-3000-checkins] r51582 - python/branches/p3yk/Lib/plat-riscos/riscosenviron.py python/branches/p3yk/Lib/plat-riscos/rourl2path.py
brett.cannon
python-3000-checkins at python.org
Fri Aug 25 03:00:48 CEST 2006
Author: brett.cannon
Date: Fri Aug 25 03:00:47 2006
New Revision: 51582
Modified:
python/branches/p3yk/Lib/plat-riscos/riscosenviron.py
python/branches/p3yk/Lib/plat-riscos/rourl2path.py
Log:
Remove some uses of '<>'.
Modified: python/branches/p3yk/Lib/plat-riscos/riscosenviron.py
==============================================================================
--- python/branches/p3yk/Lib/plat-riscos/riscosenviron.py (original)
+++ python/branches/p3yk/Lib/plat-riscos/riscosenviron.py Fri Aug 25 03:00:47 2006
@@ -13,7 +13,7 @@
return len(riscos.getenvdict())
def __getitem__(self, key):
ret = riscos.getenv(key)
- if ret<>None:
+ if ret != None:
return ret
else:
raise KeyError
Modified: python/branches/p3yk/Lib/plat-riscos/rourl2path.py
==============================================================================
--- python/branches/p3yk/Lib/plat-riscos/rourl2path.py (original)
+++ python/branches/p3yk/Lib/plat-riscos/rourl2path.py Fri Aug 25 03:00:47 2006
@@ -14,7 +14,7 @@
"""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] == '///':
More information about the Python-3000-checkins
mailing list