[Cryptech-Commits] [sw/pkcs11] branch python3 updated: Missed (one?) script while converting to Python 3

git at cryptech.is git at cryptech.is
Mon Jul 13 14:36:34 UTC 2020

This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch python3
in repository sw/pkcs11.

The following commit(s) were added to refs/heads/python3 by this push:
     new b424b2a  Missed (one?) script while converting to Python 3
b424b2a is described below

commit b424b2af8b3e5097eb7e829d2a728a1720d5d0bd
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Jul 13 10:36:17 2020 -0400

    Missed (one?) script while converting to Python 3
 scripts/build-attributes | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/build-attributes b/scripts/build-attributes
index 3b06305..52a154c 100755
--- a/scripts/build-attributes
+++ b/scripts/build-attributes
@@ -144,7 +144,7 @@ class AttributeNumbers(dict):
                 if word[2] in self:
                 if word[2].startswith("(CKF_ARRAY_ATTRIBUTE|"):
-                    word[2] = word[2].translate(None, "()").split("|")[1]
+                    word[2] = word[2].replace("(", "").replace(")", "").split("|")[1]
                 self[word[1]] = int(word[2], 16)

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Commits mailing list