Skip to content

Commit

Permalink
doctests: silence another f%&!$ print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Jan 11, 2024
1 parent a3da419 commit 2fd0c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fafbseg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def download_cache_file(url, filename=None, force_reload=False, verbose=True):
is_text = "text" in content_type or "html" in content_type
with open(fp, mode="w" if is_text else "w") as f:
f.write(r.content.decode())
if verbose:
if verbose and not os.environ.get("FAFBSEG_TESTING", False):
print("Done.")

return fp

0 comments on commit 2fd0c58

Please sign in to comment.