Ignore:
Timestamp:
Dec 25, 2018, 11:05:32 PM (12 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
histedit_source:
0a87e070cc46fff630b6cb475bbafedf1a4bc6c7
Message:
Remove unneeded uses of `io`

In Python 3, `io.open` is the same as `open`, so we don't need to
use `io.open`.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/host.py

    r1715 r1717  
    190190        this `FTPHost` object.
    191191
    192         The arguments `path`, `mode`, `buffering`, `encoding`, `errors`
    193         and `newlines` have the same meaning as for `io.open`. If `rest`
    194         is given as an integer,
     192        The arguments `path`, `mode`, `buffering`, `encoding`,
     193        `errors` and `newlines` have the same meaning as for `open`.
     194        If `rest` is given as an integer,
    195195
    196196        - reading will start at the byte (zero-based) `rest`
     
    200200        if none is available.
    201201        """
    202         # Support the same arguments as `io.open`.
     202        # Support the same arguments as `open`.
    203203        # pylint: disable=too-many-arguments
    204204        path = ftputil.tool.as_unicode(path)
Note: See TracChangeset for help on using the changeset viewer.