fix pyopenssl version checking. Fixes #7124

This commit is contained in:
Yann Leboulanger 2012-03-27 14:57:49 +02:00
parent 6ba89b3360
commit 6fbb0b7847
1 changed files with 1 additions and 2 deletions

View File

@ -5,8 +5,7 @@ try:
import OpenSSL.SSL
import OpenSSL.crypto
ver = OpenSSL.__version__
ver_l = [int(i) for i in ver.split('.')]
if ver_l < [0, 12]:
if ver < '0.12':
raise ImportError
from pyasn1.type import univ, constraint, char, namedtype, tag
from pyasn1.codec.der.decoder import decode