Changeset 1715:01215a325738
- Timestamp:
- Dec 25, 2018, 10:45:26 PM (2 years ago)
- Branch:
- default
- histedit_source:
- 7eb43f62d2d0cc9803660722df5c0ab729cd5c8d
- Location:
- ftputil
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ftputil/host.py
r1713 r1715 19 19 import ftputil.file_transfer 20 20 import ftputil.path 21 import ftputil.session_adapter22 21 import ftputil.stat 23 22 import ftputil.tool … … 128 127 with ftputil.error.ftplib_error_to_ftp_os_error: 129 128 session = factory(*args, **kwargs) 130 # Adapt session so that they accept unicode strings with131 # non-ASCII characters (as long as the string contains only132 # code points <= 255). See the docstring in module133 # `session_adapter` for details.134 if ftputil.compat.python_version == 2:135 session = ftputil.session_adapter.SessionAdapter(session)136 129 return session 137 130
Note: See TracChangeset
for help on using the changeset viewer.