summaryrefslogtreecommitdiff
path: root/Lib/importlib/abc.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-05-09 12:28:22 -0400
committerBrett Cannon <brett@python.org>2014-05-09 12:28:22 -0400
commit6eaac13c92750afddebf22fc0a57e3f40e9d1a2f (patch)
treefb9563cccb0a04691fdbec1cc3dd5a41b1b311bb /Lib/importlib/abc.py
parenta237a987539aed6ba28115c2e932b205c592be88 (diff)
downloadcpython-git-6eaac13c92750afddebf22fc0a57e3f40e9d1a2f.tar.gz
Issue #21156: importlib.abc.InspectLoader.source_to_code() is now a
staticmethod.
Diffstat (limited to 'Lib/importlib/abc.py')
-rw-r--r--Lib/importlib/abc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index 558abd3d9a..7f6f235971 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -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'