From a84623685511c4bfbe359f1910fa5e31b6cda3da Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 21 Apr 2012 21:46:32 -0400 Subject: Continue the good fight to get Windows to like importlib by fixing a variable name. --- Lib/importlib/_bootstrap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v0.12