From 88a72bcbbb16c2e0d58b6c6fdc6c51b8e517ee7f Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 16 Apr 2018 14:19:00 +0300 Subject: [PATCH] Unify quotes --- pyderasn.py | 18 +++++++++--------- tests/test_crts.py | 4 ++-- tests/test_pyderasn.py | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pyderasn.py b/pyderasn.py index 8924d07..3b5c4d8 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -269,11 +269,11 @@ for AlgorithmIdentifier of X.509's ``tbsCertificate.subjectPublicKeyInfo.algorithm.algorithm``:: ( - (('parameters',), { + (("parameters",), { id_ecPublicKey: ECParameters(), id_GostR3410_2001: GostR34102001PublicKeyParameters(), }), - (('..', 'subjectPublicKey'), { + (("..", "subjectPublicKey"), { id_rsaEncryption: RSAPublicKey(), id_GostR3410_2001: OctetString(), }), @@ -1013,7 +1013,7 @@ class Obj(object): class DecodePathDefBy(object): """DEFINED BY representation inside decode path """ - __slots__ = ('defined_by',) + __slots__ = ("defined_by",) def __init__(self, defined_by): self.defined_by = defined_by @@ -1766,12 +1766,12 @@ class BitString(Obj): class KeyUsage(BitString): schema = ( - ('digitalSignature', 0), - ('nonRepudiation', 1), - ('keyEncipherment', 2), + ("digitalSignature", 0), + ("nonRepudiation", 1), + ("keyEncipherment", 2), ) - >>> b = KeyUsage(('keyEncipherment', 'nonRepudiation')) + >>> b = KeyUsage(("keyEncipherment", "nonRepudiation")) KeyUsage BIT STRING 3 bits nonRepudiation, keyEncipherment >>> b.named ['nonRepudiation', 'keyEncipherment'] @@ -3228,8 +3228,8 @@ class Choice(Obj): class GeneralName(Choice): schema = ( - ('rfc822Name', IA5String(impl=tag_ctxp(1))), - ('dNSName', IA5String(impl=tag_ctxp(2))), + ("rfc822Name", IA5String(impl=tag_ctxp(1))), + ("dNSName", IA5String(impl=tag_ctxp(2))), ) >>> gn = GeneralName() diff --git a/tests/test_crts.py b/tests/test_crts.py index 9c6b76c..04e54e4 100644 --- a/tests/test_crts.py +++ b/tests/test_crts.py @@ -91,8 +91,8 @@ class AttributeValue(Any): class OrganizationName(Choice): schema = ( - ('printableString', PrintableString()), - ('teletexString', TeletexString()), + ("printableString", PrintableString()), + ("teletexString", TeletexString()), ) diff --git a/tests/test_pyderasn.py b/tests/test_pyderasn.py index f8377e8..401d623 100644 --- a/tests/test_pyderasn.py +++ b/tests/test_pyderasn.py @@ -108,11 +108,11 @@ from pyderasn import VideotexString from pyderasn import VisibleString -settings.register_profile('local', settings( +settings.register_profile("local", settings( deadline=5000, perform_health_check=False, )) -settings.load_profile('local') +settings.load_profile("local") LONG_TEST_MAX_EXAMPLES = settings().max_examples * 4 tag_classes = sampled_from(( @@ -2806,7 +2806,7 @@ class TestUTF8String(StringMixin, CommonMixin, TestCase): class UnicodeDecodeErrorMixin(object): @given(text( - alphabet=''.join(six_unichr(i) for i in list(range(0x0410, 0x044f + 1))), + alphabet="".join(six_unichr(i) for i in list(range(0x0410, 0x044f + 1))), min_size=1, max_size=5, )) -- 2.44.0