You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by GitBox <gi...@apache.org> on 2019/12/14 07:00:08 UTC

[GitHub] [incubator-teaclave] m4sterchain commented on a change in pull request #155: Use enclave_info.toml instead of txt

m4sterchain commented on a change in pull request #155: Use enclave_info.toml instead of txt
URL: https://github.com/apache/incubator-teaclave/pull/155#discussion_r357900744
 
 

 ##########
 File path: cmake/scripts/gen_enclave_info_toml.py
 ##########
 @@ -0,0 +1,20 @@
+import sys
+
+def find_hex_value(content, section):
+    index = content.index(section)
+    content = content[index+1:index+3]
 
 Review comment:
   ```python
   hex_bytes = ''.join(content[index+1:index+3]).split()
   return ''.join['%02x' % int(x, 16) for x in hex_bytes]
   ```
   Might be a little clearer. Will also raise an error when int(x, 16) conversion failed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org