mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
[Logging] Fix line numbers missing on Python 3
The findCaller method returns a 4-element tuple on Python 3 whereas it was a 3-element tuple on Python 2.
This commit is contained in:
parent
c6b6902e9f
commit
72d363968e
1 changed files with 4 additions and 1 deletions
|
@ -98,7 +98,10 @@ class Logging(LoggingLoggerClass):
|
||||||
):
|
):
|
||||||
f = f.f_back
|
f = f.f_back
|
||||||
continue
|
continue
|
||||||
|
if common.PY2:
|
||||||
rv = (filename, f.f_lineno, co.co_name)
|
rv = (filename, f.f_lineno, co.co_name)
|
||||||
|
else:
|
||||||
|
rv = (filename, f.f_lineno, co.co_name, None)
|
||||||
break
|
break
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue