From 199b8c8ea507f1524a392de7cb2e7cee97e4909d Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sun, 16 May 2021 23:01:06 +0300 Subject: [PATCH] Revert hidden import in tr, try python2 imports first --- src/tr.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tr.py b/src/tr.py index 19dca6d4..d75aa63b 100644 --- a/src/tr.py +++ b/src/tr.py @@ -3,11 +3,10 @@ Translating text """ import os -import sys -if sys.version_info[0] == 3: - from . import state -else: +try: import state +except ImportError: + from . import state class translateClass: