Skip to content

Commit

Permalink
Fix old Python syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Jan 27, 2025
1 parent aa9d1c2 commit 0045a18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions click_extra/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,8 @@ def extraBasicConfig(
if arg_id in locals() and locals()[arg_id] is not None:
kwargs[arg_id] = locals()[arg_id]

getLogger("click_extra").debug(
f"Call basicConfig({', '.join(f"{k}={v!r}" for k, v in kwargs.items())})"
)
call_str = ", ".join(f"{k}={v!r}" for k, v in kwargs.items())
getLogger("click_extra").debug(f"Call basicConfig({call_str})")

with patch.object(logging, "StreamHandler", ExtraStreamHandler):
with patch.object(logging, "Formatter", ExtraFormatter):
Expand Down

0 comments on commit 0045a18

Please sign in to comment.