git://git.novaco.in
/
electrum-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
don't use eval
[electrum-server.git]
/
utils
/
__init__.py
diff --git
a/utils/__init__.py
b/utils/__init__.py
index
95c6c17
..
a01d0e1
100644
(file)
--- a/
utils/__init__.py
+++ b/
utils/__init__.py
@@
-74,7
+74,7
@@
def header_to_string(res):
def hex_to_int(s):
- return eval('0x' + s[::-1].encode('hex'))
+ return int('0x' + s[::-1].encode('hex'), 16)
def header_from_string(s):