summaryrefslogtreecommitdiff
path: root/pyasn1/compat/integer.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/compat/integer.py')
-rw-r--r--pyasn1/compat/integer.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/pyasn1/compat/integer.py b/pyasn1/compat/integer.py
index 4b31791..df6bed4 100644
--- a/pyasn1/compat/integer.py
+++ b/pyasn1/compat/integer.py
@@ -5,16 +5,12 @@
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
+import platform
-try:
- import platform
-
- implementation = platform.python_implementation()
+from pyasn1.compat.octets import oct2int, null, ensureString
-except (ImportError, AttributeError):
- implementation = 'CPython'
-from pyasn1.compat.octets import oct2int, null, ensureString
+implementation = platform.python_implementation()
if sys.version_info[0:2] < (3, 2) or implementation != 'CPython':
from binascii import a2b_hex, b2a_hex