mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
This commit is contained in:
parent
b9c3ed4f82
commit
b9d4963a98
18 changed files with 99 additions and 88 deletions
|
@ -281,7 +281,8 @@ class Importer:
|
|||
setattr(parent, modname, module)
|
||||
return module
|
||||
|
||||
def _process_result(self, (ispkg, code, values), fqname):
|
||||
def _process_result(self, result, fqname):
|
||||
ispkg, code, values = result
|
||||
# did get_code() return an actual module? (rather than a code object)
|
||||
is_module = isinstance(code, _ModuleType)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue