mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[issue19152] Add ExtensionFileLoader.get_filename().
This commit is contained in:
parent
efbc475278
commit
af8566c847
5 changed files with 227 additions and 196 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue