[issue19152] Add ExtensionFileLoader.get_filename().

This commit is contained in:
Eric Snow 2013-10-03 12:08:55 -06:00
parent efbc475278
commit af8566c847
5 changed files with 227 additions and 196 deletions

View file

@ -1153,6 +1153,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