From bda216000cbb5e46f612e2907ee1e1bf1a9a2567 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 13 Sep 2024 00:04:41 +0200 Subject: [PATCH] Remove print(). (#5) --- changelogs/fragments/5-io-print.yml | 2 ++ src/antsibull_fileutils/io.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/5-io-print.yml diff --git a/changelogs/fragments/5-io-print.yml b/changelogs/fragments/5-io-print.yml new file mode 100644 index 0000000..b86f09e --- /dev/null +++ b/changelogs/fragments/5-io-print.yml @@ -0,0 +1,2 @@ +bugfixes: + - "Remove accidentally left-in ``print()`` statement in ``antsibull_fileutils.io.write_file()`` (https://github.com/ansible-community/antsibull-fileutils/pull/5)." diff --git a/src/antsibull_fileutils/io.py b/src/antsibull_fileutils/io.py index 941e359..6b9cc70 100644 --- a/src/antsibull_fileutils/io.py +++ b/src/antsibull_fileutils/io.py @@ -85,7 +85,6 @@ async def write_file( content_bytes = content.encode(encoding) - print(file_check_content, len(content_bytes)) if file_check_content > 0 and len(content_bytes) <= file_check_content: # Check whether the destination file exists and has the same content as the one we want to # write, in which case we won't overwrite the file