From 20f20b0e29a37d68dafcbc363e778e3922549b90 Mon Sep 17 00:00:00 2001 From: gracelombardi Date: Fri, 8 Jul 2022 13:07:21 -0400 Subject: [PATCH] Code consistency updated --- kmip/pie/client.py | 1 - kmip/pie/objects.py | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/kmip/pie/client.py b/kmip/pie/client.py index 4944cac..8e3ba3a 100644 --- a/kmip/pie/client.py +++ b/kmip/pie/client.py @@ -20,7 +20,6 @@ from kmip.core import enums from kmip.core import primitives from kmip.core import objects as cobjects -from kmip.core.objects import Attribute from kmip.core.factories import attributes from kmip.core.attributes import CryptographicParameters diff --git a/kmip/pie/objects.py b/kmip/pie/objects.py index 33892c0..882a95e 100644 --- a/kmip/pie/objects.py +++ b/kmip/pie/objects.py @@ -657,8 +657,8 @@ class SymmetricKey(Key): 'sqlite_autoincrement': True } - def __init__(self, algorithm, length, value, app_specific_info=None, masks=None, - name='Symmetric Key', key_wrapping_data=None): + def __init__(self, algorithm, length, value, masks=None, + name='Symmetric Key', key_wrapping_data=None, app_specific_info=None): """ Create a SymmetricKey. @@ -824,7 +824,7 @@ class PublicKey(Key): def __init__(self, algorithm, length, value, format_type=enums.KeyFormatType.X_509, masks=None, - name='Public Key', app_specific_info = None, key_wrapping_data=None): + name='Public Key', key_wrapping_data=None, app_specific_info=None): """ Create a PublicKey. @@ -992,7 +992,7 @@ class PrivateKey(Key): } def __init__(self, algorithm, length, value, format_type, masks=None, - name='Private Key', app_specific_info = None, key_wrapping_data=None): + name='Private Key', key_wrapping_data=None, app_specific_info=None): """ Create a PrivateKey. @@ -1589,7 +1589,7 @@ class SecretData(CryptographicObject): 'sqlite_autoincrement': True } - def __init__(self, value, data_type, app_specific_info=None, masks=None, name='Secret Data'): + def __init__(self, value, data_type, masks=None, name='Secret Data', app_specific_info=None): """ Create a SecretData object.