Ignore:
Timestamp:
Aug 3, 2013, 11:46:24 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
For Python 3, return `socket.makefile` result unchanged.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/file.py

    r1322 r1323  
    7070        that `BufferedReader` or `BufferedWriter` require.
    7171        """
     72        # The `socket.makefile` return value under Python 3 already
     73        # has all the required attributes.
     74        if ftputil.compat.python_version == 3:
     75            return fobj
    7276        # I tried to assign the missing methods as bound methods
    7377        # directly to `fobj`, but this seemingly isn't possible with
Note: See TracChangeset for help on using the changeset viewer.