mirror of https://github.com/python/cpython.git
Removed a dead line of code.
This commit is contained in:
parent
445ff35d5c
commit
f602c71b07
|
@ -192,7 +192,6 @@ def check_rename(self, module_name, new_module_name):
|
||||||
- The module can be imported using the new 3.x name.
|
- The module can be imported using the new 3.x name.
|
||||||
- The warning message specify both names.
|
- The warning message specify both names.
|
||||||
"""
|
"""
|
||||||
ModuleType = type(sys) # get the module type object
|
|
||||||
with CleanImport(module_name):
|
with CleanImport(module_name):
|
||||||
with catch_warning(record=False) as w:
|
with catch_warning(record=False) as w:
|
||||||
warnings.filterwarnings("error", ".+ renamed to",
|
warnings.filterwarnings("error", ".+ renamed to",
|
||||||
|
|
Loading…
Reference in New Issue