From 9ca0eca99539f2c9a1d19237900f9011c852b066 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 25 Aug 2006 01:00:47 +0000 Subject: Remove some uses of '<>'. --- 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 95a2ce5..800ffcf 100644 --- a/Lib/plat-riscos/riscosenviron.py +++ b/Lib/plat-riscos/riscosenviron.py @@ -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 diff --git a/Lib/plat-riscos/rourl2path.py b/Lib/plat-riscos/rourl2path.py index 7a8badf..4fb1921 100644 --- a/Lib/plat-riscos/rourl2path.py +++ b/Lib/plat-riscos/rourl2path.py @@ -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] == '///': -- cgit v0.12