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: