summaryrefslogtreecommitdiffstats
path: root/dilos/libraries/pytde/debian/pytdeconfig.py
diff options
context:
space:
mode:
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 *