summaryrefslogtreecommitdiffstats
path: root/Lib/plat-riscos/rourl2path.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-riscos/rourl2path.py')
-rw-r--r--Lib/plat-riscos/rourl2path.py2
1 files changed, 1 insertions, 1 deletions
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] == '///':