diff Lib/importlib/_bootstrap.py @ 79480:15949f34e08f

#16135: Removal of OS/2 support (Python code partial cleanup)
author Jesus Cea <jcea@jcea.es>
date Fri, 05 Oct 2012 03:15:39 +0200
parents 4a979326e6d6
children 31db8e3272f1
line wrap: on
line diff
--- a/Lib/importlib/_bootstrap.py	Fri Oct 05 02:48:46 2012 +0200
+++ b/Lib/importlib/_bootstrap.py	Fri Oct 05 03:15:39 2012 +0200
@@ -1709,7 +1709,7 @@
             builtin_module = sys.modules[builtin_name]
         setattr(self_module, builtin_name, builtin_module)
 
-    os_details = ('posix', ['/']), ('nt', ['\\', '/']), ('os2', ['\\', '/'])
+    os_details = ('posix', ['/']), ('nt', ['\\', '/'])
     for builtin_os, path_separators in os_details:
         # Assumption made in _path_join()
         assert all(len(sep) == 1 for sep in path_separators)
@@ -1720,9 +1720,6 @@
         else:
             try:
                 os_module = BuiltinImporter.load_module(builtin_os)
-                # TODO: rip out os2 code after 3.3 is released as per PEP 11
-                if builtin_os == 'os2' and 'EMX GCC' in sys.version:
-                    path_sep = path_separators[1]
                 break
             except ImportError:
                 continue