Continue the good fight to get Windows to like importlib by fixing a

variable name.
This commit is contained in:
Brett Cannon 2012-04-21 21:46:32 -04:00
parent 27f29d8483
commit a846236855

View file

@ -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