Ignore:
Timestamp:
Aug 5, 2013, 6:53:15 AM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Changed `_FTPFile` to `FTPFile`. This still isn't a public API.

Nowadays I tend to omit the leading underscores for functions and
classes on the module level because it impacts the readability
(especially if you have mostly non-public names). Instead I list the
public names in `__all__` although this isn't the official purpose of
`__all__`.

If in doubt, the documentation counts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mock_ftplib.py

    r1343 r1351  
    3838class MockFile(io.BytesIO, object):
    3939    """
    40     Mock class for the file objects _contained in_ `_FTPFile` objects
    41     (not `_FTPFile` objects themselves!).
     40    Mock class for the file objects _contained in_ `FTPFile` objects
     41    (not `FTPFile` objects themselves!).
    4242
    4343    Contrary to `StringIO.StringIO` instances, `MockFile` objects can
     
    109109        # each has a corresponding `voidresp`.
    110110        self._transfercmds = 0
    111         # Dummy, only for getting/setting timeout in `_FTPFile.close`
     111        # Dummy, only for getting/setting timeout in `FTPFile.close`
    112112        self.sock = MockSocket("", "")
    113113
Note: See TracChangeset for help on using the changeset viewer.