Remove white space between print and ()
TrivialFix Change-Id: Id2976410c96dfee35baaa6b1e7ea0f382c7f5cba
This commit is contained in:
parent
e79930a077
commit
043e8e28eb
@ -170,7 +170,7 @@ class HSMCommands(object):
|
||||
self.pkcs11.generate_key(int(length), self.session, str(label),
|
||||
encrypt=True, wrap=True, master_key=True)
|
||||
self.pkcs11.return_session(self.session)
|
||||
print ("MKEK successfully generated!")
|
||||
print("MKEK successfully generated!")
|
||||
|
||||
gen_hmac_description = "Generates a new HMAC key"
|
||||
|
||||
@ -193,7 +193,7 @@ class HSMCommands(object):
|
||||
self.pkcs11.generate_key(int(length), self.session, str(label),
|
||||
sign=True, master_key=True)
|
||||
self.pkcs11.return_session(self.session)
|
||||
print ("HMAC successfully generated!")
|
||||
print("HMAC successfully generated!")
|
||||
|
||||
rewrap_pkek_description = "Re-wrap project MKEKs"
|
||||
|
||||
@ -214,7 +214,7 @@ class HSMCommands(object):
|
||||
def _verify_label_does_not_exist(self, label, session):
|
||||
key_handle = self.pkcs11.get_key_handle(label, session)
|
||||
if key_handle:
|
||||
print (
|
||||
print(
|
||||
"The label {label} already exists! "
|
||||
"Please try again.".format(label=label)
|
||||
)
|
||||
|
@ -86,7 +86,7 @@ class KeyGenerator(object):
|
||||
def verify_label_does_not_exist(self, label, session):
|
||||
key_handle = self.pkcs11.get_key_handle(label, session)
|
||||
if key_handle:
|
||||
print (
|
||||
print(
|
||||
"The label {label} already exists! "
|
||||
"Please try again.".format(label=label)
|
||||
)
|
||||
@ -97,7 +97,7 @@ class KeyGenerator(object):
|
||||
self.verify_label_does_not_exist(args.label, self.session)
|
||||
self.pkcs11.generate_key(int(args.length), self.session, args.label,
|
||||
encrypt=True, wrap=True, master_key=True)
|
||||
print ("MKEK successfully generated!")
|
||||
print("MKEK successfully generated!")
|
||||
|
||||
def generate_hmac(self, args):
|
||||
"""Process the generate HMAC with given arguments"""
|
||||
@ -105,7 +105,7 @@ class KeyGenerator(object):
|
||||
self.pkcs11.generate_key(int(args.length), self.session,
|
||||
args.label, sign=True,
|
||||
master_key=True)
|
||||
print ("HMAC successfully generated!")
|
||||
print("HMAC successfully generated!")
|
||||
|
||||
def execute(self):
|
||||
"""Parse the command line arguments."""
|
||||
|
Loading…
Reference in New Issue
Block a user