mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
remove unneeded uses of str()
This commit is contained in:
parent
d481e3d791
commit
cf7925dfc6
4 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ class FixImports(fixer_base.BaseFix):
|
|||
import_mod = results.get("module_name")
|
||||
if import_mod:
|
||||
mod_name = import_mod.value
|
||||
new_name = str(self.mapping[mod_name])
|
||||
new_name = self.mapping[mod_name]
|
||||
import_mod.replace(Name(new_name, prefix=import_mod.get_prefix()))
|
||||
if "name_import" in results:
|
||||
# If it's not a "from x import x, y" or "import x as y" import,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue