Changeset 351664


Ignore:
Timestamp:
11/19/2019 04:44:47 PM (6 years ago)
Author:
minus <minus@mnus.de>
Branches:
2.0.x, develop, master
Children:
5e06ae
Parents:
5f1ead
git-author:
minus <minus@mnus.de> (11/17/2019 08:36:23 AM)
git-committer:
minus <minus@mnus.de> (11/19/2019 04:44:47 PM)
Message:

[Logging] Fix Python 3.8 compatibility

Deluge's logger class extends Python's logging.Logger. Since Python
3.8, it takes an additional argument stacklevel.
The implementation in Deluge does not support that. Work around the
problem by ignoring additional arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/log.py

    r5f1ead r351664  
    8787        yield LoggingLoggerClass.exception(self, msg, *args, **kwargs)
    8888
    89     def findCaller(self, stack_info=False):  # NOQA: N802
     89    def findCaller(self, *args, **kwargs):  # NOQA: N802
    9090        f = logging.currentframe().f_back
    9191        rv = '(unknown file)', 0, '(unknown function)'
Note: See TracChangeset for help on using the changeset viewer.