From 29946334ba78e2f5c5cfff6bf74153867e2f08db Mon Sep 17 00:00:00 2001 From: Mikolaj Kucharski Date: Thu, 14 Nov 2024 17:49:05 +0000 Subject: [PATCH] Fix scp.put() usage in documentation sample --- docs/_samples/copy_files_scp.py | 2 +- docs/changelog-fragments/646.doc.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/changelog-fragments/646.doc.rst 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`.