diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2021-04-27 13:13:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 13:13:07 +0100 |
commit | fe604a022a7142157da7e90a40330beb2a11af7a (patch) | |
tree | d0e20b355e5e9b532665651daa52eb096310baa4 /synapse/__init__.py | |
parent | Pass errors back to the client when trying multiple federation destinations. ... (diff) | |
download | synapse-fe604a022a7142157da7e90a40330beb2a11af7a.tar.xz |
Remove various bits of compatibility code for Python <3.6 (#9879)
I went through and removed a bunch of cruft that was lying around for compatibility with old Python versions. This PR also will now prevent Synapse from starting unless you're running Python 3.6+.
Diffstat (limited to 'synapse/__init__.py')
-rw-r--r-- | synapse/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/__init__.py b/synapse/__init__.py index 837e938f56..fbd49a93e1 100644 --- a/synapse/__init__.py +++ b/synapse/__init__.py @@ -21,8 +21,8 @@ import os import sys # Check that we're not running on an unsupported Python version. -if sys.version_info < (3, 5): - print("Synapse requires Python 3.5 or above.") +if sys.version_info < (3, 6): + print("Synapse requires Python 3.6 or above.") sys.exit(1) # Twisted and canonicaljson will fail to import when this file is executed to |