Skip to content

Commit

Permalink
Remove obsolete explicit conversion to integer of a string formatting…
Browse files Browse the repository at this point in the history
… keyname
  • Loading branch information
PCManticore committed Mar 11, 2020
1 parent 87681f7 commit 47ec7e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pylint/checkers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,7 @@ def parse_format_method_string(
elif name:
keyname, fielditerator = split_format_field_names(name)
if isinstance(keyname, numbers.Number):
# In Python 2 it will return long which will lead
# to different output between 2 and 3
explicit_pos_args.add(str(keyname))
keyname = int(keyname)
try:
keyword_arguments.append((keyname, list(fielditerator)))
except ValueError:
Expand Down

0 comments on commit 47ec7e7

Please sign in to comment.