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