1
0

stop using eval

This commit is contained in:
Bryan Stitt
2013-11-11 22:03:20 -08:00
parent d93c642c5c
commit 91061752cf
5 changed files with 16 additions and 10 deletions

View File

@@ -5,6 +5,9 @@ from datetime import datetime
is_verbose = True
def hex_to_int(s):
return int('0x' + s[::-1].encode('hex'), 16)
class MyEncoder(json.JSONEncoder):
def default(self, obj):