From: Brett Cannon Date: Fri, 25 Aug 2006 01:06:13 +0000 (+0000) Subject: Even more removals of '<>'; I can hear Barry shedding a manly tear ... X-Git-Tag: v3.0a1~1339 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fc9139193cecfd12bd78bd7ec059dc571a4415a;p=thirdparty%2FPython%2Fcpython.git Even more removals of '<>'; I can hear Barry shedding a manly tear ... --- diff --git a/Lib/plat-riscos/riscosenviron.py b/Lib/plat-riscos/riscosenviron.py index 800ffcfa668d..6b0f82110d7c 100644 --- a/Lib/plat-riscos/riscosenviron.py +++ b/Lib/plat-riscos/riscosenviron.py @@ -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): diff --git a/Lib/plat-riscos/rourl2path.py b/Lib/plat-riscos/rourl2path.py index 4fb1921b6647..981cebab6929 100644 --- a/Lib/plat-riscos/rourl2path.py +++ b/Lib/plat-riscos/rourl2path.py @@ -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