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
  • ftputil/sync.py

    r1718 r1723  
    8585        if self._target.path.isfile(target_dir):
    8686            raise ftputil.error.SyncError(
    87                   "target dir '{0}' is actually a file".format(target_dir))
     87                  "target dir '{}' is actually a file".format(target_dir))
    8888        # Deliberately use an `isdir` test instead of `try/except`. The
    8989        #  latter approach might mask other errors we want to see, e. g.
Note: See TracChangeset for help on using the changeset viewer.