Python3 fixes

This commit is contained in:
NIIBE Yutaka
2015-08-03 19:51:50 +09:00
parent 0fb6853fc7
commit b2ca03dc19
4 changed files with 34 additions and 28 deletions

View File

@@ -66,7 +66,7 @@ def cmd_put_data_with_result(tag_str):
@Given("a message (\".*\")")
def set_msg(content_str_repr):
msg = ast.literal_eval(content_str_repr)
msg = ast.literal_eval(content_str_repr).encode('UTF-8')
scc.digestinfo = rsa_keys.compute_digestinfo(msg)
@Given("a public key from token for OPENPGP.(.*)")