Changeset 1713:f146a1ea66aa
- Timestamp:
- Dec 25, 2018, 10:35:36 PM (2 years ago)
- Branch:
- default
- histedit_source:
- 75ef8b8fbff8d21a0f37a4430581fcf480720aea
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
ftputil/__init__.py
r1689 r1713 1 # Copyright (C) 2002-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 45 45 """ 46 46 47 from __future__ import absolute_import48 from __future__ import unicode_literals49 50 47 import sys 51 48 import warnings -
ftputil/compat.py
r1564 r1713 1 1 # encoding: utf-8 2 # Copyright (C) 2011-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>2 # Copyright (C) 2011-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 3 3 # and ftputil contributors (see `doc/contributors.txt`) 4 4 # See the file LICENSE for licensing terms. … … 10 10 the Python 3 helpers as well. 11 11 """ 12 13 from __future__ import unicode_literals14 12 15 13 import sys -
ftputil/error.py
r1682 r1713 1 # Copyright (C) 2003-201 4, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 8 8 9 9 # pylint: disable=too-many-ancestors 10 11 from __future__ import unicode_literals12 10 13 11 import ftplib -
ftputil/file.py
r1619 r1713 1 # Copyright (C) 2003-201 5, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 ftputil.file - support for file-like objects on FTP servers 7 7 """ 8 9 from __future__ import print_function10 from __future__ import unicode_literals11 8 12 9 import io -
ftputil/file_transfer.py
r1580 r1713 1 # Copyright (C) 2013-201 4, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2013-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 file_transfer.py - upload, download and generic file copy 7 7 """ 8 9 from __future__ import unicode_literals10 8 11 9 import io -
ftputil/host.py
r1711 r1713 1 # Copyright (C) 2002-201 5, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 8 8 See `__init__.py` for an example. 9 9 """ 10 11 from __future__ import absolute_import12 from __future__ import print_function13 from __future__ import unicode_literals14 10 15 11 import ftplib -
ftputil/lrucache.py
r1544 r1713 43 43 """ 44 44 45 from __future__ import unicode_literals46 47 45 import time 48 46 … … 50 48 # The suffix after the hyphen denotes modifications by the 51 49 # ftputil project with respect to the original version. 52 __version__ = "0.2-1 2"50 __version__ = "0.2-13" 53 51 __all__ = ['CacheKeyError', 'LRUCache', 'DEFAULT_SIZE'] 54 52 __docformat__ = 'reStructuredText en' -
ftputil/path.py
r1684 r1713 1 # Copyright (C) 2003-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 ftputil.path - simulate `os.path` for FTP servers 7 7 """ 8 9 from __future__ import absolute_import10 from __future__ import unicode_literals11 8 12 9 import 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> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 7 7 for ftputil. 8 8 """ 9 10 from __future__ import unicode_literals11 9 12 10 import 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> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 40 40 preferred string type of `ftplib` under Python 2 vs. Python 3. 41 41 """ 42 43 from __future__ import unicode_literals44 42 45 43 import ftputil.compat -
ftputil/stat.py
r1682 r1713 1 # Copyright (C) 2002-201 5, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 ftputil.stat - stat result, parsers, and FTP stat'ing for `ftputil` 7 7 """ 8 9 from __future__ import absolute_import10 from __future__ import unicode_literals11 8 12 9 import datetime -
ftputil/stat_cache.py
r1564 r1713 1 # Copyright (C) 2006-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2006-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 ftp_stat_cache.py - cache for (l)stat data 7 7 """ 8 9 from __future__ import unicode_literals10 8 11 9 import time -
ftputil/sync.py
r1564 r1713 1 # Copyright (C) 2007-201 2, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2007-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 14 14 # - remote -> remote 15 15 # - local -> local (maybe implicitly possible due to design, but not targeted) 16 17 from __future__ import unicode_literals18 16 19 17 import os -
ftputil/tool.py
r1564 r1713 1 # Copyright (C) 2013 , Stefan Schwarzer1 # Copyright (C) 2013-2018, Stefan Schwarzer 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 tool.py - helper code 7 7 """ 8 9 from __future__ import unicode_literals10 8 11 9 import ftputil.compat as compat -
ftputil/version.py
r1698 r1713 1 # Copyright (C) 2006-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2006-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 Provide version information about ftputil and the runtime environment. 7 7 """ 8 9 from __future__ import unicode_literals10 8 11 9 import sys -
sandbox/m2crypto_session.py
r1485 r1713 1 1 # encoding: utf-8 2 # Copyright (C) 2014 , Stefan Schwarzer2 # Copyright (C) 2014-2018, Stefan Schwarzer 3 3 4 4 """ … … 15 15 See ticket #78 for details. 16 16 """ 17 18 from __future__ import unicode_literals19 17 20 18 import M2Crypto -
setup.py
r1378 r1713 1 1 #! /usr/bin/env python 2 # Copyright (C) 2003-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>2 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 3 3 # See the file LICENSE for licensing terms. 4 4 … … 6 6 setup.py - installation script for Python distutils 7 7 """ 8 9 from __future__ import print_function10 8 11 9 import os -
test/mock_ftplib.py
r1712 r1713 1 1 # encoding: utf-8 2 # Copyright (C) 2003-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>2 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 3 3 # and ftputil contributors (see `doc/contributors.txt`) 4 4 # See the file LICENSE for licensing terms. … … 11 11 unit tests. 12 12 """ 13 14 from __future__ import unicode_literals15 13 16 14 import io -
test/test_base.py
r1564 r1713 1 # Copyright (C) 2003-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import unicode_literals6 4 7 5 import ftputil -
test/test_error.py
r1663 r1713 1 1 # encoding: utf-8 2 # Copyright (C) 2002-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>2 # Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 3 3 # and ftputil contributors (see `doc/contributors.txt`) 4 4 # See the file LICENSE for licensing terms. 5 6 from __future__ import unicode_literals7 5 8 6 import ftplib -
test/test_file.py
r1674 r1713 1 # Copyright (C) 2002-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import unicode_literals6 4 7 5 import ftplib -
test/test_file_transfer.py
r1663 r1713 1 # Copyright (C) 2010-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2010-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import unicode_literals6 4 7 5 import io -
test/test_host.py
r1677 r1713 1 1 # encoding: utf-8 2 # Copyright (C) 2002-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>2 # Copyright (C) 2002-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 3 3 # and ftputil contributors (see `doc/contributors.txt`) 4 4 # See the file LICENSE for licensing terms. 5 6 from __future__ import unicode_literals7 5 8 6 import ftplib -
test/test_path.py
r1682 r1713 1 1 # encoding: utf-8 2 # Copyright (C) 2003-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>2 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 3 3 # and ftputil contributors (see `doc/contributors.txt`) 4 4 # See the file LICENSE for licensing terms. 5 6 from __future__ import unicode_literals7 5 8 6 import ftplib -
test/test_public_servers.py
r1699 r1713 1 # Copyright (C) 2009-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2009-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import print_function6 from __future__ import unicode_literals7 4 8 5 import os -
test/test_real_ftp.py
r1711 r1713 1 1 # encoding: UTF-8 2 # Copyright (C) 2003-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>2 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 3 3 # and ftputil contributors (see `doc/contributors.txt`) 4 4 # See the file LICENSE for licensing terms. … … 10 10 # This test can take a few minutes because it has to wait to test the 11 11 # timezone calculation. 12 13 from __future__ import absolute_import14 from __future__ import unicode_literals15 12 16 13 import ftplib -
test/test_session.py
r1663 r1713 1 # Copyright (C) 2014-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2014-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. … … 6 6 Unit tests for session factory helpers. 7 7 """ 8 9 from __future__ import unicode_literals10 8 11 9 import ftputil.session -
test/test_stat.py
r1666 r1713 1 # Copyright (C) 2003-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2003-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import absolute_import6 from __future__ import division7 from __future__ import unicode_literals8 4 9 5 import stat -
test/test_stat_cache.py
r1663 r1713 1 # Copyright (C) 2006-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2006-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import unicode_literals6 4 7 5 import time -
test/test_sync.py
r1663 r1713 1 # Copyright (C) 2007-201 3, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2007-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import absolute_import6 from __future__ import unicode_literals7 4 8 5 import io -
test/test_tool.py
r1663 r1713 1 # Copyright (C) 2013-201 6, Stefan Schwarzer1 # Copyright (C) 2013-2018, Stefan Schwarzer 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import unicode_literals6 4 7 5 import ftputil.compat as compat -
test/test_with_statement.py
r1663 r1713 1 # Copyright (C) 2008-201 6, Stefan Schwarzer <sschwarzer@sschwarzer.net>1 # Copyright (C) 2008-2018, Stefan Schwarzer <sschwarzer@sschwarzer.net> 2 2 # and ftputil contributors (see `doc/contributors.txt`) 3 3 # See the file LICENSE for licensing terms. 4 5 from __future__ import unicode_literals6 4 7 5 import pytest
Note: See TracChangeset
for help on using the changeset viewer.