summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-22 01:46:32 (GMT)
committerBrett Cannon <brett@python.org>2012-04-22 01:46:32 (GMT)
commita84623685511c4bfbe359f1910fa5e31b6cda3da (patch)
tree8ba92a742da784bc93ef55572368e74b97eaf074
parent27f29d8483b16e0dbf9164ff82eff768151b8822 (diff)
downloadcpython-a84623685511c4bfbe359f1910fa5e31b6cda3da.zip
cpython-a84623685511c4bfbe359f1910fa5e31b6cda3da.tar.gz
cpython-a84623685511c4bfbe359f1910fa5e31b6cda3da.tar.bz2
Continue the good fight to get Windows to like importlib by fixing a
variable name.
-rw-r--r--Lib/importlib/_bootstrap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 8ed7687..46a7029 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -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