diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
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 |