mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
Adding pkg_resources exception to DeprecationWarning
This commit is contained in:
parent
b0e682f66c
commit
192ba5f8f2
@ -101,6 +101,8 @@ logging.Logger.trace = lambda self, message, *args, **kwargs: self._log( # type
|
|||||||
logging.Formatter.converter = gmtime
|
logging.Formatter.converter = gmtime
|
||||||
|
|
||||||
warnings.simplefilter('default', DeprecationWarning)
|
warnings.simplefilter('default', DeprecationWarning)
|
||||||
|
# TODO remove after infi.systray drops pkg_resources
|
||||||
|
warnings.filterwarnings('ignore', '.*pkg_resources', DeprecationWarning)
|
||||||
|
|
||||||
|
|
||||||
def _trace_if(self: logging.Logger, condition: str, message: str, *args, **kwargs) -> None:
|
def _trace_if(self: logging.Logger, condition: str, message: str, *args, **kwargs) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user