From 3fedbb545c8e01ea977ae771114aacf05c931df6 Mon Sep 17 00:00:00 2001 From: Weilu Jia Date: Wed, 18 Mar 2020 01:53:20 -0700 Subject: testing/deluge: Fix logging on Python 3.8 Closes https://gitlab.alpinelinux.org/alpine/aports/issues/11313 Backport patch from https://dev.deluge-torrent.org/ticket/3327 --- testing/deluge/10-python38-logging.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testing/deluge/10-python38-logging.patch (limited to 'testing/deluge/10-python38-logging.patch') diff --git a/testing/deluge/10-python38-logging.patch b/testing/deluge/10-python38-logging.patch new file mode 100644 index 0000000000..a3c9ad4e99 --- /dev/null +++ b/testing/deluge/10-python38-logging.patch @@ -0,0 +1,15 @@ +https://dev.deluge-torrent.org/changeset/351664ec071daa04 +Slated for 2.0.4 release +diff --git a/deluge/log.py b/deluge/log.py +index 75e8308b5..0f9877fdb 100644 +--- a/deluge/log.py ++++ b/deluge/log.py +@@ -86,7 +86,7 @@ def critical(self, msg, *args, **kwargs): + def exception(self, msg, *args, **kwargs): + yield LoggingLoggerClass.exception(self, msg, *args, **kwargs) + +- def findCaller(self, stack_info=False): # NOQA: N802 ++ def findCaller(self, *args, **kwargs): # NOQA: N802 + f = logging.currentframe().f_back + rv = '(unknown file)', 0, '(unknown function)' + while hasattr(f, 'f_code'): -- cgit v1.2.3