mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Continue the good fight to get Windows to like importlib by fixing a
variable name.
This commit is contained in:
parent
27f29d8483
commit
a846236855
1 changed files with 3 additions and 1 deletions
|
@ -61,12 +61,14 @@ def _r_long(int_bytes):
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
|
||||||
|
# XXX Optimize for single-separator OSs by having two versions of this function
|
||||||
|
# and choosing in _setup().
|
||||||
def _path_join(*args):
|
def _path_join(*args):
|
||||||
"""Replacement for os.path.join()."""
|
"""Replacement for os.path.join()."""
|
||||||
if len(path_separators) == 1:
|
if len(path_separators) == 1:
|
||||||
sep = path_sep
|
sep = path_sep
|
||||||
else:
|
else:
|
||||||
for c in reversed(args[0]):
|
for x in reversed(args[0]):
|
||||||
if x in path_separators:
|
if x in path_separators:
|
||||||
sep = x
|
sep = x
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue