Skip to content

Commit

Permalink
document patch
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel committed Aug 13, 2023
1 parent ab92600 commit bc2e373
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@


def patch_deprecation_warning():
"""
Avoid the deprecation warning from `brother_ql.devicedependent`. This has been
fixed in the Git version, but not in PyPI one:
https://github.com/pklaus/brother_ql/commit/5c2b72b18bcf436c116f180a9147cbb6805958f5
"""
original_logger = logging.getLogger("brother_ql.devicedependent").warning

def warn(message, *args, **kwargs):
Expand Down

0 comments on commit bc2e373

Please sign in to comment.