From 004d8168d4ea8ec1b2b1bb50bbfb6852f72beec6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Nov 2024 16:23:49 +0800 Subject: [PATCH] fix pep8 problem (ansible#84367) --- lib/ansible/modules/copy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/copy.py b/lib/ansible/modules/copy.py index af9e5503caf..4d8658e4082 100644 --- a/lib/ansible/modules/copy.py +++ b/lib/ansible/modules/copy.py @@ -584,7 +584,7 @@ def main(): # Special handling for recursive copy - create intermediate dirs if dest.endswith(os.sep): - if _original_basename and not(remote_src and os.path.isdir(src)): + if _original_basename and not (remote_src and os.path.isdir(src)): dest = os.path.join(dest, _original_basename) b_dest = to_bytes(dest, errors='surrogate_or_strict') dirname = os.path.dirname(dest) @@ -610,7 +610,7 @@ def main(): if os.path.isdir(b_dest): basename = os.path.basename(src) - if _original_basename and not(remote_src and os.path.isdir(src)): + if _original_basename and not (remote_src and os.path.isdir(src)): basename = _original_basename dest = os.path.join(dest, basename) b_dest = to_bytes(dest, errors='surrogate_or_strict')