Skip to content

Commit

Permalink
Remove print(). (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Sep 12, 2024
1 parent 1ff6e15 commit bda2160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/5-io-print.yml
Original file line number Diff line number Diff line change
@@ -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)."
1 change: 0 additions & 1 deletion src/antsibull_fileutils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bda2160

Please sign in to comment.