mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue #21156: importlib.abc.InspectLoader.source_to_code() is now a
staticmethod.
This commit is contained in:
parent
a237a98753
commit
6eaac13c92
4 changed files with 17 additions and 2 deletions
|
@ -217,7 +217,8 @@ class InspectLoader(Loader):
|
|||
"""
|
||||
raise ImportError
|
||||
|
||||
def source_to_code(self, data, path='<string>'):
|
||||
@staticmethod
|
||||
def source_to_code(data, path='<string>'):
|
||||
"""Compile 'data' into a code object.
|
||||
|
||||
The 'data' argument can be anything that compile() can handle. The'path'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue