]> granicus.if.org Git - python/commitdiff
Even more removals of '<>'; I can hear Barry shedding a manly tear ...
authorBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 01:06:13 +0000 (01:06 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 01:06:13 +0000 (01:06 +0000)
Lib/plat-riscos/riscosenviron.py
Lib/plat-riscos/rourl2path.py

index 800ffcfa668d113da31a23ed0e906856da7cd746..6b0f82110d7c4b3e7c93e21ca84229c2224721be 100644 (file)
@@ -31,7 +31,7 @@ class _Environ:
     def values(self): return riscos.getenvdict().values()
     def has_key(self, key):
         value = riscos.getenv(key)
-        return value<>None
+        return value != None
     def __contains__(self, key):
         return riscos.getenv(key) is not None
     def update(self, dict):
index 4fb1921b6647bc9afc06dbec9dd1d8b31bbe8b43..981cebab6929bd14ab2cabe23860433d94045a99 100644 (file)
@@ -39,7 +39,7 @@ def url2pathname(url):
         elif components[i] == '..':
             components[i] = '^'
             i += 1
-        elif components[i] == '' and i > 0 and components[i-1] <> '':
+        elif components[i] == '' and i > 0 and components[i-1] != '':
             del components[i]
         else:
             i += 1