git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
2b847e5
)
Merge pull request #21 from WyseNynja/no_eval
author
ThomasV
<thomasv1@gmx.de>
Mon, 14 Jan 2013 07:47:23 +0000 (23:47 -0800)
committer
ThomasV
<thomasv1@gmx.de>
Mon, 14 Jan 2013 07:47:23 +0000 (23:47 -0800)
don't use eval
utils/__init__.py
patch
|
blob
|
history
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):