Ignore:
Timestamp:
Dec 26, 2018, 8:00:40 PM (8 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
  • test/mock_ftplib.py

    r1719 r1723  
    6969    def __init__(self, path, mock_file_content=b""):
    7070        if DEBUG:
    71             print("File content: *{0}*".format(mock_file_content))
     71            print("File content: *{}*".format(mock_file_content))
    7272        self.file_path = path
    7373        self.mock_file_content = mock_file_content
     
    161161        path = args[-1]
    162162        if DEBUG:
    163             print("dir: {0}".format(path))
     163            print("dir: {}".format(path))
    164164        path = self._transform_path(path)
    165165        if path not in self.dir_contents:
Note: See TracChangeset for help on using the changeset viewer.