Skip to content

Commit

Permalink
_print
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Oct 17, 2024
1 parent 17b9dfd commit 6514c7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cachier/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ def func_wrapper(*args, **kwds):
func, _is_method=core.func_is_method, args=args, kwds=kwds
)

_print = lambda x: None # noqa: E731
if verbose:
_print = print
_print = print if verbose else lambda x: None

if ignore_cache or not _default_params["caching_enabled"]:
return (
func(args[0], **kwargs)
Expand Down

0 comments on commit 6514c7a

Please sign in to comment.