Changeset 1713:f146a1ea66aa


Ignore:
Timestamp:
Dec 25, 2018, 10:35:36 PM (3 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
histedit_source:
75ef8b8fbff8d21a0f37a4430581fcf480720aea
Message:
Remove `__future__` imports

With the switch to Python 3.x-only, the `__future__` imports are no
longer needed.

Update copyright years along with the `__future__` import removal.
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • ftputil/__init__.py

    r1689 r1713  
    1 # Copyright (C) 2002-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    4545"""
    4646
    47 from __future__ import absolute_import
    48 from __future__ import unicode_literals
    49 
    5047import sys
    5148import warnings
  • ftputil/compat.py

    r1564 r1713  
    11# encoding: utf-8
    2 # Copyright (C) 2011-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     2# Copyright (C) 2011-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    33# and ftputil contributors (see `doc/contributors.txt`)
    44# See the file LICENSE for licensing terms.
     
    1010the Python 3 helpers as well.
    1111"""
    12 
    13 from __future__ import unicode_literals
    1412
    1513import sys
  • ftputil/error.py

    r1682 r1713  
    1 # Copyright (C) 2003-2014, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    88
    99# pylint: disable=too-many-ancestors
    10 
    11 from __future__ import unicode_literals
    1210
    1311import ftplib
  • ftputil/file.py

    r1619 r1713  
    1 # Copyright (C) 2003-2015, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66ftputil.file - support for file-like objects on FTP servers
    77"""
    8 
    9 from __future__ import print_function
    10 from __future__ import unicode_literals
    118
    129import io
  • ftputil/file_transfer.py

    r1580 r1713  
    1 # Copyright (C) 2013-2014, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2013-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66file_transfer.py - upload, download and generic file copy
    77"""
    8 
    9 from __future__ import unicode_literals
    108
    119import io
  • ftputil/host.py

    r1711 r1713  
    1 # Copyright (C) 2002-2015, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    88See `__init__.py` for an example.
    99"""
    10 
    11 from __future__ import absolute_import
    12 from __future__ import print_function
    13 from __future__ import unicode_literals
    1410
    1511import ftplib
  • ftputil/lrucache.py

    r1544 r1713  
    4343"""
    4444
    45 from __future__ import unicode_literals
    46 
    4745import time
    4846
     
    5048# The suffix after the hyphen denotes modifications by the
    5149# ftputil project with respect to the original version.
    52 __version__ = "0.2-12"
     50__version__ = "0.2-13"
    5351__all__ = ['CacheKeyError', 'LRUCache', 'DEFAULT_SIZE']
    5452__docformat__ = 'reStructuredText en'
  • ftputil/path.py

    r1684 r1713  
    1 # Copyright (C) 2003-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66ftputil.path - simulate `os.path` for FTP servers
    77"""
    8 
    9 from __future__ import absolute_import
    10 from __future__ import unicode_literals
    118
    129import posixpath
  • ftputil/session.py

    r1681 r1713  
    1 # Copyright (C) 2014, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2014-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    77for ftputil.
    88"""
    9 
    10 from __future__ import unicode_literals
    119
    1210import ftplib
  • ftputil/session_adapter.py

    r1610 r1713  
    1 # Copyright (C) 2015, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2015-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    4040preferred string type of `ftplib` under Python 2 vs. Python 3.
    4141"""
    42 
    43 from __future__ import unicode_literals
    4442
    4543import ftputil.compat
  • ftputil/stat.py

    r1682 r1713  
    1 # Copyright (C) 2002-2015, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66ftputil.stat - stat result, parsers, and FTP stat'ing for `ftputil`
    77"""
    8 
    9 from __future__ import absolute_import
    10 from __future__ import unicode_literals
    118
    129import datetime
  • ftputil/stat_cache.py

    r1564 r1713  
    1 # Copyright (C) 2006-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2006-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66ftp_stat_cache.py - cache for (l)stat data
    77"""
    8 
    9 from __future__ import unicode_literals
    108
    119import time
  • ftputil/sync.py

    r1564 r1713  
    1 # Copyright (C) 2007-2012, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2007-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    1414# - remote -> remote
    1515# - local -> local (maybe implicitly possible due to design, but not targeted)
    16 
    17 from __future__ import unicode_literals
    1816
    1917import os
  • ftputil/tool.py

    r1564 r1713  
    1 # Copyright (C) 2013, Stefan Schwarzer
     1# Copyright (C) 2013-2018, Stefan Schwarzer
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66tool.py - helper code
    77"""
    8 
    9 from __future__ import unicode_literals
    108
    119import ftputil.compat as compat
  • ftputil/version.py

    r1698 r1713  
    1 # Copyright (C) 2006-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2006-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66Provide version information about ftputil and the runtime environment.
    77"""
    8 
    9 from __future__ import unicode_literals
    108
    119import sys
  • sandbox/m2crypto_session.py

    r1485 r1713  
    11# encoding: utf-8
    2 # Copyright (C) 2014, Stefan Schwarzer
     2# Copyright (C) 2014-2018, Stefan Schwarzer
    33
    44"""
     
    1515See ticket #78 for details.
    1616"""
    17 
    18 from __future__ import unicode_literals
    1917
    2018import M2Crypto
  • setup.py

    r1378 r1713  
    11#! /usr/bin/env python
    2 # Copyright (C) 2003-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     2# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    33# See the file LICENSE for licensing terms.
    44
     
    66setup.py - installation script for Python distutils
    77"""
    8 
    9 from __future__ import print_function
    108
    119import os
  • test/mock_ftplib.py

    r1712 r1713  
    11# encoding: utf-8
    2 # Copyright (C) 2003-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     2# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    33# and ftputil contributors (see `doc/contributors.txt`)
    44# See the file LICENSE for licensing terms.
     
    1111unit tests.
    1212"""
    13 
    14 from __future__ import unicode_literals
    1513
    1614import io
  • test/test_base.py

    r1564 r1713  
    1 # Copyright (C) 2003-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import unicode_literals
    64
    75import ftputil
  • test/test_error.py

    r1663 r1713  
    11# encoding: utf-8
    2 # Copyright (C) 2002-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     2# Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    33# and ftputil contributors (see `doc/contributors.txt`)
    44# See the file LICENSE for licensing terms.
    5 
    6 from __future__ import unicode_literals
    75
    86import ftplib
  • test/test_file.py

    r1674 r1713  
    1 # Copyright (C) 2002-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import unicode_literals
    64
    75import ftplib
  • test/test_file_transfer.py

    r1663 r1713  
    1 # Copyright (C) 2010-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2010-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import unicode_literals
    64
    75import io
  • test/test_host.py

    r1677 r1713  
    11# encoding: utf-8
    2 # Copyright (C) 2002-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     2# Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    33# and ftputil contributors (see `doc/contributors.txt`)
    44# See the file LICENSE for licensing terms.
    5 
    6 from __future__ import unicode_literals
    75
    86import ftplib
  • test/test_path.py

    r1682 r1713  
    11# encoding: utf-8
    2 # Copyright (C) 2003-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     2# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    33# and ftputil contributors (see `doc/contributors.txt`)
    44# See the file LICENSE for licensing terms.
    5 
    6 from __future__ import unicode_literals
    75
    86import ftplib
  • test/test_public_servers.py

    r1699 r1713  
    1 # Copyright (C) 2009-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2009-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import print_function
    6 from __future__ import unicode_literals
    74
    85import os
  • test/test_real_ftp.py

    r1711 r1713  
    11# encoding: UTF-8
    2 # Copyright (C) 2003-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     2# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    33# and ftputil contributors (see `doc/contributors.txt`)
    44# See the file LICENSE for licensing terms.
     
    1010# This test can take a few minutes because it has to wait to test the
    1111# timezone calculation.
    12 
    13 from __future__ import absolute_import
    14 from __future__ import unicode_literals
    1512
    1613import ftplib
  • test/test_session.py

    r1663 r1713  
    1 # Copyright (C) 2014-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2014-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
     
    66Unit tests for session factory helpers.
    77"""
    8 
    9 from __future__ import unicode_literals
    108
    119import ftputil.session
  • test/test_stat.py

    r1666 r1713  
    1 # Copyright (C) 2003-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import absolute_import
    6 from __future__ import division
    7 from __future__ import unicode_literals
    84
    95import stat
  • test/test_stat_cache.py

    r1663 r1713  
    1 # Copyright (C) 2006-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2006-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import unicode_literals
    64
    75import time
  • test/test_sync.py

    r1663 r1713  
    1 # Copyright (C) 2007-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2007-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import absolute_import
    6 from __future__ import unicode_literals
    74
    85import io
  • test/test_tool.py

    r1663 r1713  
    1 # Copyright (C) 2013-2016, Stefan Schwarzer
     1# Copyright (C) 2013-2018, Stefan Schwarzer
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import unicode_literals
    64
    75import ftputil.compat as compat
  • test/test_with_statement.py

    r1663 r1713  
    1 # Copyright (C) 2008-2016, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2008-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# and ftputil contributors (see `doc/contributors.txt`)
    33# See the file LICENSE for licensing terms.
    4 
    5 from __future__ import unicode_literals
    64
    75import pytest
Note: See TracChangeset for help on using the changeset viewer.