mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
||||
|
||||
|
||||
# XXX Optimize for single-separator OSs by having two versions of this function
|
||||
# and choosing in _setup().
|
||||
def _path_join(*args):
|
||||
"""Replacement for os.path.join()."""
|
||||
if len(path_separators) == 1:
|
||||
sep = path_sep
|
||||
else:
|
||||
for c in reversed(args[0]):
|
||||
for x in reversed(args[0]):
|
||||
if x in path_separators:
|
||||
sep = x
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue