remove unneeded uses of str()

This commit is contained in:
Benjamin Peterson 2009-05-09 19:44:56 +00:00
parent d481e3d791
commit cf7925dfc6
4 changed files with 4 additions and 4 deletions

View file

@ -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,