Skip to content

Commit

Permalink
deprecate_positional_args: remove stray print (pydata#6934)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause authored Aug 19, 2022
1 parent 98deab5 commit a37a6b3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions xarray/util/deprecation_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ def _decorator(f):

@wraps(f)
def inner(*args, **kwargs):
print(f"{args=}")
print(f"{pos_or_kw_args=}")
n_extra_args = len(args) - len(pos_or_kw_args)
print(f"{n_extra_args=}")
if n_extra_args > 0:

extra_args = ", ".join(kwonly_args[:n_extra_args])
Expand All @@ -107,10 +104,8 @@ def inner(*args, **kwargs):
"",
FutureWarning,
)
print(f"{kwargs=}")

kwargs.update({name: arg for name, arg in zip(pos_or_kw_args, args)})
print(f"{kwargs=}")

return f(**kwargs)

Expand Down

0 comments on commit a37a6b3

Please sign in to comment.