mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
[issue19152] Add ExtensionFileLoader.get_filename().
This commit is contained in:
parent
e8bbfebee0
commit
5179445520
5 changed files with 1380 additions and 1353 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue