diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-05-18 10:45:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 10:45:30 +0100 |
commit | 4d1afb1dfe678898322479e229b3d51cc33c3fd2 (patch) | |
tree | 0aa0009fc0f1c8ca09f4379810ac71a34e0ee775 /synapse/logging/utils.py | |
parent | fix mypy for tests/replication (#7518) (diff) | |
parent | changelog (diff) | |
download | synapse-4d1afb1dfe678898322479e229b3d51cc33c3fd2.tar.xz |
Merge pull request #7519 from matrix-org/rav/kill_py2_code
Kill off some old python 2 code
Diffstat (limited to 'synapse/logging/utils.py')
-rw-r--r-- | synapse/logging/utils.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/synapse/logging/utils.py b/synapse/logging/utils.py index 0c2527bd86..99049bb5d8 100644 --- a/synapse/logging/utils.py +++ b/synapse/logging/utils.py @@ -20,8 +20,6 @@ import time from functools import wraps from inspect import getcallargs -from six import PY3 - _TIME_FUNC_ID = 0 @@ -30,12 +28,8 @@ def _log_debug_as_f(f, msg, msg_args): logger = logging.getLogger(name) if logger.isEnabledFor(logging.DEBUG): - if PY3: - lineno = f.__code__.co_firstlineno - pathname = f.__code__.co_filename - else: - lineno = f.func_code.co_firstlineno - pathname = f.func_code.co_filename + lineno = f.__code__.co_firstlineno + pathname = f.__code__.co_filename record = logging.LogRecord( name=name, |