diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-05-15 19:17:06 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-05-15 19:37:41 +0100 |
commit | d4676910c91dd492ca5cc7c207969fa7bfe1bbee (patch) | |
tree | c2dc156b782c596f7f8393324058e749c120af30 /synapse/http/matrixfederationclient.py | |
parent | remove `builtins.buffer` code from storage code (diff) | |
download | synapse-d4676910c91dd492ca5cc7c207969fa7bfe1bbee.tar.xz |
remove miscellaneous PY2 code
Diffstat (limited to 'synapse/http/matrixfederationclient.py')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index 225a47e3c3..44077f5349 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -19,7 +19,7 @@ import random import sys from io import BytesIO -from six import PY3, raise_from, string_types +from six import raise_from, string_types from six.moves import urllib import attr @@ -70,11 +70,7 @@ incoming_responses_counter = Counter( MAX_LONG_RETRIES = 10 MAX_SHORT_RETRIES = 3 - -if PY3: - MAXINT = sys.maxsize -else: - MAXINT = sys.maxint +MAXINT = sys.maxsize _next_id = 1 |