diff options
| author | Weilu Jia <optix2000@teitoku.net> | 2020-03-18 01:53:20 -0700 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-19 20:24:59 +0000 |
| commit | 3fedbb545c8e01ea977ae771114aacf05c931df6 (patch) | |
| tree | 69e927c86ad023e038a1e20e9f40a0a89a5e5285 /testing/deluge/10-python38-logging.patch | |
| parent | 20721184752d5a64fab6b3b5f94d21d9504c7662 (diff) | |
| download | aports-3fedbb545c8e01ea977ae771114aacf05c931df6.tar.bz2 aports-3fedbb545c8e01ea977ae771114aacf05c931df6.tar.xz | |
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
Diffstat (limited to 'testing/deluge/10-python38-logging.patch')
| -rw-r--r-- | testing/deluge/10-python38-logging.patch | 15 |
1 files changed, 15 insertions, 0 deletions
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'): |
