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 48b7b6b commit 58effc5
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 @@ -242,9 +242,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 _global_params.caching_enabled:
return (
func(args[0], **kwargs)
Expand Down

0 comments on commit 58effc5

Please sign in to comment.