]> granicus.if.org Git - python/commitdiff
Continue the good fight to get Windows to like importlib by fixing a
authorBrett Cannon <brett@python.org>
Sun, 22 Apr 2012 01:46:32 +0000 (21:46 -0400)
committerBrett Cannon <brett@python.org>
Sun, 22 Apr 2012 01:46:32 +0000 (21:46 -0400)
variable name.

Lib/importlib/_bootstrap.py

index 8ed768700aae1cae9506ea7b6a63092e73966fd2..46a70295e65739fc8f5bc1cc120016105b16a731 100644 (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