diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-11 17:11:42 +0100 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-11 17:11:42 +0100 |
| commit | 47ec7e7a2937c78136c560b458bc2467bee2acd9 (patch) | |
| tree | 747778c12e191eb45f021cdca437e22033864455 /pylint/checkers/utils.py | |
| parent | 87681f72477d7bc19e2443203f0e88c10d1ef804 (diff) | |
| download | pylint-git-47ec7e7a2937c78136c560b458bc2467bee2acd9.tar.gz | |
Remove obsolete explicit conversion to integer of a string formatting keyname
Diffstat (limited to 'pylint/checkers/utils.py')
| -rw-r--r-- | pylint/checkers/utils.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py index 9543bf8f1..51299e52f 100644 --- a/pylint/checkers/utils.py +++ b/pylint/checkers/utils.py @@ -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: |
