Ignore:
Timestamp:
Dec 25, 2018, 11:05:32 PM (11 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/file_transfer.py

    r1713 r1717  
    77"""
    88
    9 import io
    109import os
    1110
     
    5554    def fobj(self):
    5655        """Return a file object for the name/path in the constructor."""
    57         return io.open(self.name, self.mode)
     56        return open(self.name, self.mode)
    5857
    5958
Note: See TracChangeset for help on using the changeset viewer.