Changeset 1715:01215a325738


Ignore:
Timestamp:
Dec 25, 2018, 10:45:26 PM (8 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
histedit_source:
7eb43f62d2d0cc9803660722df5c0ab729cd5c8d
Message:
Remove `session_adapter.py`

This was a crutch that was only needed for Python 2 support.
Location:
ftputil
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/host.py

    r1713 r1715  
    1919import ftputil.file_transfer
    2020import ftputil.path
    21 import ftputil.session_adapter
    2221import ftputil.stat
    2322import ftputil.tool
     
    128127        with ftputil.error.ftplib_error_to_ftp_os_error:
    129128            session = factory(*args, **kwargs)
    130         # Adapt session so that they accept unicode strings with
    131         # non-ASCII characters (as long as the string contains only
    132         # code points <= 255). See the docstring in module
    133         # `session_adapter` for details.
    134         if ftputil.compat.python_version == 2:
    135             session = ftputil.session_adapter.SessionAdapter(session)
    136129        return session
    137130
Note: See TracChangeset for help on using the changeset viewer.