diff --git a/docs/_samples/copy_files_scp.py b/docs/_samples/copy_files_scp.py index d2da2d973..c98fca4ae 100644 --- a/docs/_samples/copy_files_scp.py +++ b/docs/_samples/copy_files_scp.py @@ -29,6 +29,6 @@ scp.get(remote_file, local_file) scp = ssh.scp() - scp.put(remote_file, local_file) + scp.put(local_file, remote_file) ssh.close() diff --git a/docs/changelog-fragments/646.doc.rst b/docs/changelog-fragments/646.doc.rst new file mode 100644 index 000000000..70168fa48 --- /dev/null +++ b/docs/changelog-fragments/646.doc.rst @@ -0,0 +1 @@ +Fix scp.put() usage in documentation sample -- by :user:`kucharskim`.