diff Lib/importlib/_bootstrap.py @ 85946:832579dbafd6 3.3

[issue19152] Add ExtensionFileLoader.get_filename().
author Eric Snow <ericsnowcurrently@gmail.com>
date Thu, 03 Oct 2013 12:08:55 -0600
parents 32b18998a560
children 7ed717bd5faa f739d1ab5af0
line wrap: on
line diff
--- a/Lib/importlib/_bootstrap.py	Thu Oct 03 12:08:55 2013 -0600
+++ b/Lib/importlib/_bootstrap.py	Thu Oct 03 12:08:55 2013 -0600
@@ -1153,6 +1153,11 @@
         """Return None as extension modules have no source code."""
         return None
 
+    @_check_name
+    def get_filename(self, fullname):
+        """Return the path to the source file as found by the finder."""
+        return self.path
+
 
 class _NamespacePath:
     """Represents a namespace package's path.  It uses the module name