]> granicus.if.org Git - python/commitdiff
Remove some uses of '<>'.
authorBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 01:00:47 +0000 (01:00 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 01:00:47 +0000 (01:00 +0000)
Lib/plat-riscos/riscosenviron.py
Lib/plat-riscos/rourl2path.py

index 95a2ce55d992a7dceb6ee22829d188f98fc7b6a6..800ffcfa668d113da31a23ed0e906856da7cd746 100644 (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
index 7a8badf446320bf3f86a0cfff782d94305212059..4fb1921b6647bc9afc06dbec9dd1d8b31bbe8b43 100644 (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] == '///':