Ignore:
Timestamp:
Oct 5, 2013, 1:46:24 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use augmented assignment to change `self._transfercmds`.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mock_ftplib.py

    r1436 r1439  
    173173    def voidresp(self):
    174174        assert self._transfercmds == 1
    175         self._transfercmds = self._transfercmds - 1
     175        self._transfercmds -= 1
    176176        return "2xx"
    177177
     
    194194            raise ftplib.error_perm
    195195        assert self._transfercmds == 0
    196         self._transfercmds = self._transfercmds + 1
     196        self._transfercmds += 1
    197197        return MockSocket(path, self.mock_file_content)
    198198
Note: See TracChangeset for help on using the changeset viewer.