Ignore:
Timestamp:
Oct 20, 2013, 10:24:59 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Dealt with many of PyLint's messages.

In some places I changed the code as implicitly advised. In other
places I disabled the PyLint messages but commented why the code
"violates" PyLint's rules.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/host.py

    r1455 r1459  
    22# Copyright (C) 2008, Roger Demetrescu <roger.demetrescu@gmail.com>
    33# See the file LICENSE for licensing terms.
     4
     5"""
     6`FTPHost` is the central class of the `ftputil` library.
     7
     8See `__init__.py` for an example.
     9"""
    410
    511from __future__ import absolute_import
     
    1925
    2026__all__ = ["FTPHost"]
     27
     28
     29# The "protected" attributes PyLint talks about aren't intended for
     30# clients of the library. `FTPHost` objects need to use some of these
     31# library-internal attributes though.
     32# pylint: disable=protected-access
    2133
    2234
     
    165177        if none is available.
    166178        """
     179        # Support the same arguments as `io.open`.
     180        # pylint: disable=too-many-arguments
    167181        path = ftputil.tool.as_unicode(path)
    168182        host = self._available_child()
     
    276290        return self._time_shift
    277291
    278     def __rounded_time_shift(self, time_shift):
     292    @staticmethod
     293    def __rounded_time_shift(time_shift):
    279294        """
    280295        Return the given time shift in seconds, but rounded to
     
    398413    # positional argument but emits a deprecation warning if `length`
    399414    # is used as a keyword argument.
    400     def copyfileobj(self, source, target,
     415    @staticmethod
     416    def copyfileobj(source, target,
    401417                    max_chunk_size=ftputil.file_transfer.MAX_COPY_CHUNK_SIZE,
    402418                    callback=None):
Note: See TracChangeset for help on using the changeset viewer.