[issue19152] Add ExtensionFileLoader.get_filename().

This commit is contained in:
Eric Snow 2013-10-03 12:08:55 -06:00
parent e8bbfebee0
commit 5179445520
5 changed files with 1380 additions and 1353 deletions

View file

@ -1171,6 +1171,11 @@ class ExtensionFileLoader:
"""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