[Python-checkins] r56189 - sandbox/trunk/import_in_py/_importlib.py

brett.cannon python-checkins at python.org
Sun Jul 8 03:13:21 CEST 2007


Author: brett.cannon
Date: Sun Jul  8 03:13:21 2007
New Revision: 56189

Modified:
   sandbox/trunk/import_in_py/_importlib.py
Log:
Remove use of os.path.splitext.


Modified: sandbox/trunk/import_in_py/_importlib.py
==============================================================================
--- sandbox/trunk/import_in_py/_importlib.py	(original)
+++ sandbox/trunk/import_in_py/_importlib.py	Sun Jul  8 03:13:21 2007
@@ -329,7 +329,8 @@
         This method is required for PyPycHandler.
         
         """
-        return os.path.splitext(path)
+        splits = path.rpartition('.')
+        return splits[0], splits[1] + splits[2]
         
     def create_path(self, base_path, type_, must_exist=False):
         """Create a new path based on a base path and requested path type.


More information about the Python-checkins mailing list