summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/libraries/pytde/debian/pytdeconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/_base/libraries/pytde/debian/pytdeconfig.py')
-rw-r--r--ubuntu/_base/libraries/pytde/debian/pytdeconfig.py6
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 *