From: Brett Cannon Date: Sun, 22 Apr 2012 01:46:32 +0000 (-0400) Subject: Continue the good fight to get Windows to like importlib by fixing a X-Git-Tag: v3.3.0a3~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a84623685511c4bfbe359f1910fa5e31b6cda3da;p=python Continue the good fight to get Windows to like importlib by fixing a variable name. --- diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 8ed768700a..46a70295e6 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