summaryrefslogtreecommitdiffstats
path: root/dilos/libraries/pytde/debian/pytdeconfig.py
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-01-03 15:48:09 +0900
committerMichele Calgaro <[email protected]>2023-01-08 21:02:25 +0900
commit328096e4edbd37b6e5b012cef3c78e311f26655f (patch)
treeb78af02b0cb73c40d7270efa939a4d5d72532b35 /dilos/libraries/pytde/debian/pytdeconfig.py
parentf963f7aac5a1c2cd3f09dfb5dc14e16fc1f7c7a6 (diff)
downloadtde-packaging-328096e4edbd37b6e5b012cef3c78e311f26655f.tar.gz
tde-packaging-328096e4edbd37b6e5b012cef3c78e311f26655f.zip
DEB pytde: drop python 2 support.
Signed-off-by: Michele Calgaro <[email protected]> Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'dilos/libraries/pytde/debian/pytdeconfig.py')
-rw-r--r--dilos/libraries/pytde/debian/pytdeconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dilos/libraries/pytde/debian/pytdeconfig.py b/dilos/libraries/pytde/debian/pytdeconfig.py
index eac264752..4536b9ff5 100644
--- a/dilos/libraries/pytde/debian/pytdeconfig.py
+++ b/dilos/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 *