Skip to content
Browse files

Remove relative imports, import version

Import version information in __init__
  • Loading branch information...
1 parent dae5d6e commit 878a75846f2f2d874f57b9e1e3b886567f1102a3 @schlatterbeck schlatterbeck committed Jan 17, 2013
Showing with 5 additions and 4 deletions.
  1. +2 −1 pyspkac/__init__.py
  2. +1 −1 pyspkac/crl.py
  3. +2 −2 pyspkac/spkac.py
View
3 pyspkac/__init__.py
@@ -1,5 +1,6 @@
try :
- from spkac import SPKAC
+ from pyspkac.spkac import SPKAC
+ from pyspkac.version import VERSION as version
except ImportError :
### when imported from setup.py, this should fail silently
pass
View
2 pyspkac/crl.py
@@ -26,7 +26,7 @@
from pyasn1.type.univ import BitString, Sequence, ObjectIdentifier
from pyasn1.type.univ import Integer, Null
from pyasn1.type.useful import UTCTime
-from pem_object import PEM_Object
+from pyspkac.pem_object import PEM_Object
class CRL (PEM_Object) :
""" Model a Certificate Revocation List
View
4 pyspkac/spkac.py
@@ -26,8 +26,8 @@
from pyasn1.codec.der.encoder import encode as der_encode
from pyasn1.error import PyAsn1Error
from base64 import b64decode
-from bitstring import Bitstring
-from pem_object import PEM_Object
+from pyspkac.bitstring import Bitstring
+from pyspkac.pem_object import PEM_Object
class SPKAC_Decode_Error (ValueError) :
pass

0 comments on commit 878a758

Please sign in to comment.
Something went wrong with that request. Please try again.