mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Rip out all the u"..." literals and calls to unicode().
This commit is contained in:
parent
572dbf8f13
commit
ef87d6ed94
200 changed files with 18074 additions and 18074 deletions
|
@ -196,7 +196,7 @@ def _normalize_module(module, depth=2):
|
|||
"""
|
||||
if inspect.ismodule(module):
|
||||
return module
|
||||
elif isinstance(module, (str, unicode)):
|
||||
elif isinstance(module, (str, str)):
|
||||
return __import__(module, globals(), locals(), ["*"])
|
||||
elif module is None:
|
||||
return sys.modules[sys._getframe(depth).f_globals['__name__']]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue