From 7b7f20c4c3c2529cd2df7380cd26fd1f887ed111 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Mon, 21 Nov 2022 01:51:42 -0700 Subject: [PATCH] Remove dead migration code --- .../src/python/relay/__main__.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/projects/activitypub_relay/src/python/relay/__main__.py b/projects/activitypub_relay/src/python/relay/__main__.py index 0ea2655..b5c2998 100644 --- a/projects/activitypub_relay/src/python/relay/__main__.py +++ b/projects/activitypub_relay/src/python/relay/__main__.py @@ -387,22 +387,6 @@ def relay_run(obj: Application): 'Relay is not set up. Please edit your relay config or run "activityrelay setup".' ) - vers_split = platform.python_version().split(".") - pip_command = "pip3 uninstall pycrypto && pip3 install pycryptodome" - - if Crypto.__version__ == "2.6.1": - if int(vers_split[1]) > 7: - click.echo( - "Error: PyCrypto is broken on Python 3.8+. Please replace it with pycryptodome before running again. Exiting..." - ) - return click.echo(pip_command) - - else: - click.echo( - "Warning: PyCrypto is old and should be replaced with pycryptodome" - ) - return click.echo(pip_command) - if not misc.check_open_port(obj.config.listen, obj.config.port): return click.echo( f"Error: A server is already running on port {obj.config.port}"