From 0fc9139193cecfd12bd78bd7ec059dc571a4415a Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 25 Aug 2006 01:06:13 +0000 Subject: [PATCH] Even more removals of '<>'; I can hear Barry shedding a manly tear ... --- Lib/plat-riscos/riscosenviron.py | 2 +- Lib/plat-riscos/rourl2path.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/plat-riscos/riscosenviron.py b/Lib/plat-riscos/riscosenviron.py index 800ffcfa668..6b0f82110d7 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 4fb1921b664..981cebab692 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