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/file.py

    r1449 r1459  
    3232
    3333    def __init__(self, fobj, is_readable=False, is_writable=False):
     34        # Don't call baseclass constructor for this adapter.
     35        # pylint: disable=super-init-not-called
     36        #
    3437        # This is the return value of `socket.makefile` and is already
    3538        # buffered.
     
    4043    @property
    4144    def closed(self):
     45        # pylint: disable=missing-docstring
    4246        return self.raw.closed
    4347
     
    9094    def _write_buffer_size(self):
    9195        """Return current size of the write buffer in bytes."""
     96        # pylint: disable=protected-access
    9297        if hasattr(self.raw, "_wbuf_len"):
    9398            # Python 2.6.3 - 2.7.5
     
    131136        """Construct the file(-like) object."""
    132137        self._host = host
     138        # pylint: disable=protected-access
    133139        self._session = host._session
    134140        # The file is still closed.
     
    145151        instead this file object is modified in-place.
    146152        """
     153        # We use the same arguments as in `io.open`.
     154        # pylint: disable=too-many-arguments
     155        #
     156        # `buffering` argument isn't used at this time.
     157        # pylint: disable=unused-argument
     158        #
    147159        # Python 3's `socket.makefile` supports the same interface as
    148160        # the new `open` builtin, but Python 2 supports only a mode,
Note: See TracChangeset for help on using the changeset viewer.