Ignore:
Timestamp:
Dec 26, 2018, 8:00:40 PM (6 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Remove positional argument specifiers for `format`

In strings for `format` calls, remove the digits for positional
arguments. For example, "{0}, {1}" becomes "{}, {}".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • find_invalid_code.py

    r1722 r1723  
    5656                 r"\bftp_stat\b"),
    5757  InvalidFeature("Possible use(s) of FTPHost.file",
    58                  r"{0}\.file\(".format(HOST_REGEX))
     58                 r"{}\.file\(".format(HOST_REGEX))
    5959]
    6060
Note: See TracChangeset for help on using the changeset viewer.