Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7145)

Unified Diff: Lib/importlib/_bootstrap.py

Issue 18864: Implementation for PEP 451 (importlib.machinery.ModuleSpec)
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/importlib.rst ('k') | Lib/test/test_importlib/test_spec.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -841,6 +841,10 @@
def has_location(self):
return self._set_fileattr
+ @has_location.setter
+ def has_location(self, value):
+ self._set_fileattr = bool(value)
+
def spec_from_loader(name, loader, *, origin=None, is_package=None):
"""Return a module spec based on various loader methods."""
« no previous file with comments | « Doc/library/importlib.rst ('k') | Lib/test/test_importlib/test_spec.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+