git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
da6f292
)
eval arg passed to setconfig, to avoid storing boolean as string
author
ThomasV
<thomasv@gitorious>
Mon, 3 Mar 2014 11:29:10 +0000 (12:29 +0100)
committer
ThomasV
<thomasv@gitorious>
Mon, 3 Mar 2014 11:29:10 +0000 (12:29 +0100)
electrum
patch
|
blob
|
history
diff --git
a/electrum
b/electrum
index
6fb6665
..
a449de3
100755
(executable)
--- a/
electrum
+++ b/
electrum
@@
-21,6
+21,7
@@
import json
import optparse
import os
import re
+import ast
import sys
import time
import traceback
@@
-454,6
+455,10
@@
if __name__ == '__main__':
elif cmd.name == 'setconfig':
key, value = args[1:3]
+ try:
+ value = ast.literal_eval(value)
+ except:
+ pass
config.set_key(key, value, True)
print_msg(True)