diff options
Diffstat (limited to 'Lib/plat-riscos')
-rw-r--r-- | Lib/plat-riscos/riscosenviron.py | 2 | ||||
-rw-r--r-- | 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 800ffcf..6b0f821 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 4fb1921..981ceba 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 |