Skip to content

Commit

Permalink
Fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Mar 6, 2023
1 parent 173067e commit d1f1454
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion ftpsync/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ def classify(self, peer_dir_meta):
# FileEntry
# ===============================================================================
class FileEntry(_Resource):

# 2 seconds difference is considered equal.
# mtime stamp resolution depends on filesystem: FAT32. 2 seconds, NTFS ms, OSX. 1 sec.
EPS_TIME = 2.01
Expand Down
5 changes: 4 additions & 1 deletion ftpsync/sftp_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,10 @@ def rmdir(self, dir_name):
# return self.sftp.rmdir(dir_name)
return self._rmdir_impl(dir_name)

_paramiko_py3compat_u = paramiko.py3compat.u
try:
_paramiko_py3compat_u = paramiko.util.u
except AttributeError:
_paramiko_py3compat_u = paramiko.py3compat.u

@staticmethod
def _paramiko_py3compat_u_wrapper(s, encoding="utf8"):
Expand Down
1 change: 0 additions & 1 deletion ftpsync/synchronizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ def _sync_dir(self):

# 4. Perform (or schedule) resulting file operations
for pair in entry_pair_list:

# print(pair)

# Let synchronizer modify the default operation (e.g. apply `--force` option)
Expand Down
1 change: 0 additions & 1 deletion ftpsync/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ def remove_sync_info(self, name):


class FsTarget(_Target):

DEFAULT_BLOCKSIZE = 16 * 1024 # shutil.copyobj() uses 16k blocks by default

def __init__(self, root_dir, extra_opts=None):
Expand Down
1 change: 0 additions & 1 deletion tests/test_develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def tearDown(self):
super().tearDown()

def test_issue_20(self):

opts = {"verbose": 5}

local_target = make_target(self.local_url)
Expand Down
1 change: 0 additions & 1 deletion tests/test_sync_bidir.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def test_resolve_local(self):
self.assert_test_folder_equal(get_test_folder("remote"), expect_local)

def test_resolve_remote(self):

opts = {"resolve": "remote", "verbose": self.verbose}

stats = self.do_run_suite(BiDirSynchronizer, opts)
Expand Down

0 comments on commit d1f1454

Please sign in to comment.