aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/extensions.py4
-rw-r--r--src/cryptography/x509/oid.py2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py
index 97d78266..71ce8a15 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -18,9 +18,7 @@ from cryptography import utils
from cryptography.hazmat.primitives import constant_time, serialization
from cryptography.x509.general_name import GeneralName, IPAddress, OtherName
from cryptography.x509.name import Name
-from cryptography.x509.oid import (
- AuthorityInformationAccessOID, ExtensionOID, ObjectIdentifier
-)
+from cryptography.x509.oid import ExtensionOID, ObjectIdentifier
class _SubjectPublicKeyInfo(univ.Sequence):
diff --git a/src/cryptography/x509/oid.py b/src/cryptography/x509/oid.py
index 977d770f..f2d84d31 100644
--- a/src/cryptography/x509/oid.py
+++ b/src/cryptography/x509/oid.py
@@ -15,7 +15,7 @@ class ObjectIdentifier(object):
# Basic validation for being well-formed
for part in self._dotted_string.split("."):
try:
- val = int(part, 0)
+ int(part, 0)
except ValueError:
raise ValueError("Malformed OID: %s" % (self._dotted_string))