Changeset 1890:e067bc331d9e


Ignore:
Timestamp:
Jan 1, 2020, 10:16:22 PM (3 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Remove arguments from `super()`

This is no longer necessary in Python 3.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • doc/ftputil.txt

    r1889 r1890  
    13911391            should be used for stat'ing, return a false value.
    13921392            """
    1393             is_total_line = super(XyzParser, self).ignores_line(line)
     1393            is_total_line = super().ignores_line(line)
    13941394            my_test = ...
    13951395            return is_total_line or my_test
  • ftputil/error.py

    r1865 r1890  
    1 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2003-2020, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    3939    # `pop` from `**kwargs`.
    4040    def __init__(self, *args, **kwargs):
    41         super(FTPError, self).__init__(*args)
     41        super().__init__(*args)
    4242        if "original_exception" in kwargs:
    4343            # Byte string under Python 2.
  • test/test_real_ftp.py

    r1848 r1890  
    753753
    754754    def setup_method(self, method):
    755         super(TestRestArgument, self).setup_method(method)
     755        super().setup_method(method)
    756756        # Write test file.
    757757        with self.host.open(self.TEST_FILE_NAME, "wb") as fobj:
  • test/test_sync.py

    r1848 r1890  
    9292class ArgumentCheckingFTPHost(ftputil.FTPHost):
    9393    def __init__(self, *args, **kwargs):
    94         super(ArgumentCheckingFTPHost, self).__init__(*args, **kwargs)
     94        super().__init__(*args, **kwargs)
    9595        self.path = DummyFTPPath()
    9696
Note: See TracChangeset for help on using the changeset viewer.