mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Remove some uses of '<>'.
This commit is contained in:
parent
0e1cff56b4
commit
9ca0eca995
2 changed files with 2 additions and 2 deletions
|
@ -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] == '///':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue