From 5f55271ca3386fabba4d5a9c691f177d5cffcc23 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 4 Oct 2024 15:37:57 +0200 Subject: [PATCH] tests: drop (nowadays) useless hack for Python 2.4 Even Python 2.7 is now EOL. And this weird import has been breaking the Tox tests (importing the tagger class brought in other unnecessary deps and tests bombed). --- src/tito/cli.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/tito/cli.py b/src/tito/cli.py index 3d3a520..82173ab 100644 --- a/src/tito/cli.py +++ b/src/tito/cli.py @@ -29,10 +29,6 @@ from tito.common import find_git_root, error_out, debug, get_class_by_name, \ from tito.compat import RawConfigParser, getstatusoutput, getoutput from tito.exception import TitoException -# Hack for Python 2.4, seems to require we import these so they get compiled -# before we try to dynamically import them based on a string name. -import tito.tagger # NOQA - PROGNAME = "tito" TITO_PROPS = "tito.props" RELEASERS_CONF_FILENAME = "releasers.conf"