Changeset 1726:b9ad96ee9c7b


Ignore:
Timestamp:
Dec 26, 2018, 8:10:12 PM (3 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Remove Python 2-specific code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/__init__.py

    r1713 r1726  
    4545"""
    4646
    47 import sys
    48 import warnings
    49 
    50 from ftputil.host    import FTPHost
     47from ftputil.host import FTPHost
    5148from ftputil.version import __version__
    52 
    53 
    54 # `sys.version_info.major` isn't available in Python 2.6.
    55 if sys.version_info[0] == 2:
    56     warnings.warn("Python 2 suport will be removed in ftputil 4.0.0",
    57                   DeprecationWarning, stacklevel=2)
    5849
    5950
Note: See TracChangeset for help on using the changeset viewer.