diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-03 15:48:09 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-08 21:02:25 +0900 |
commit | 328096e4edbd37b6e5b012cef3c78e311f26655f (patch) | |
tree | b78af02b0cb73c40d7270efa939a4d5d72532b35 /ubuntu/_base/libraries/pytde/debian/pytdeconfig.py | |
parent | f963f7aac5a1c2cd3f09dfb5dc14e16fc1f7c7a6 (diff) | |
download | tde-packaging-328096e4edbd37b6e5b012cef3c78e311f26655f.tar.gz tde-packaging-328096e4edbd37b6e5b012cef3c78e311f26655f.zip |
DEB pytde: drop python 2 support.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ubuntu/_base/libraries/pytde/debian/pytdeconfig.py')
-rw-r--r-- | ubuntu/_base/libraries/pytde/debian/pytdeconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py b/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py index eac264752..4536b9ff5 100644 --- a/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py +++ b/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py @@ -2,10 +2,10 @@ import sys -if getattr(sys, "pydebug", False): +if 'd' in sys.abiflags: try: from pytdeconfig_d import * - except ImportError, msg: - raise ImportError, 'No module named pytdeconfig; package python-trinity-dbg not installed' + except ImportError as msg: + raise ImportError('No module named pytdeconfig; package python-trinity-dbg not installed') else: from pytdeconfig_nd import * |