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
|
@ -19,5 +19,5 @@ class FixMethodattrs(fixer_base.BaseFix):
|
|||
|
||||
def transform(self, node, results):
|
||||
attr = results["attr"][0]
|
||||
new = str(MAP[attr.value])
|
||||
new = MAP[attr.value]
|
||||
attr.replace(Name(new, prefix=attr.get_prefix()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue