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