Ignore:
Timestamp:
Oct 20, 2013, 8:17:36 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Revised disabling of PyLint messages.

- Changed disabled messages from ids to human-readable names (e. g.
  use `# pylint: disable=unused-argument` instead of
  `# pylint: disable=W0613`.) According to the PyLint documentation,
  this is allowed since PyLint 0.25.3.

- Removed disabling of messages which seem to be disabled by default
  now anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/host.py

    r1421 r1449  
    114114        # `FTPHost` object's child sessions.
    115115        factory = kwargs.pop("session_factory", ftplib.FTP)
    116         # pylint: disable=W0142
    117116        with ftputil.error.ftplib_error_to_ftp_os_error:
    118117            return factory(*args, **kwargs)
     
    265264        """
    266265        # Implicitly set via `set_time_shift` call in constructor
    267         # pylint: disable=W0201
     266        # pylint: disable=attribute-defined-outside-init
    268267        self._time_shift = time_shift
    269268
     
    579578
    580579    # Ignore unused argument `mode`
    581     # pylint: disable=W0613
     580    # pylint: disable=unused-argument
    582581    def mkdir(self, path, mode=None):
    583582        """
     
    594593
    595594    # Ignore unused argument `mode`
    596     # pylint: disable=W0613
     595    # pylint: disable=unused-argument
    597596    def makedirs(self, path, mode=None):
    598597        """
     
    701700            def new_onerror(*args):
    702701                """Do nothing."""
    703                 # Ignore unused arguments
    704                 # pylint: disable=W0613
     702                # pylint: disable=unused-argument
    705703                pass
    706704        elif onerror is None:
    707705            def new_onerror(*args):
    708706                """Re-raise exception."""
    709                 # Ignore unused arguments
    710                 # pylint: disable=W0613
     707                # pylint: disable=unused-argument
    711708                raise
    712709        else:
     
    775772                """Callback function."""
    776773                lines.append(ftputil.tool.as_unicode(line))
    777             # pylint: disable=W0142
    778774            with ftputil.error.ftplib_error_to_ftp_os_error:
    779775                if self.use_list_a_option:
     
    896892    def __exit__(self, exc_type, exc_val, exc_tb):
    897893        # We don't need the `exc_*` arguments here.
    898         # pylint: disable=W0613
     894        # pylint: disable=unused-argument
    899895        self.close()
    900896        # Be explicit.
Note: See TracChangeset for help on using the changeset viewer.