Skip to content

Commit 21e4865

Browse files
author
Pan
committed
Minor change in ssh2 client
1 parent f199ecd commit 21e4865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pssh/ssh2_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def _copy_remote_dir(self, file_list, remote_dir, local_dir, sftp,
561561
encoding='utf-8'):
562562
for file_name in file_list:
563563
file_name = file_name.decode(encoding)
564-
if file_name in ['.', '..']:
564+
if file_name in ('.', '..'):
565565
continue
566566
remote_path = os.path.join(remote_dir, file_name)
567567
local_path = os.path.join(local_dir, file_name)

0 commit comments

Comments
 (0)