electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 271dfeb245fd0ba560e9d6c3593b57629972b88e
parent da6f292dd53d7f13a58522a9ad05dc50c92031bc
Author: ThomasV <thomasv@gitorious>
Date:   Mon,  3 Mar 2014 12:29:10 +0100

eval arg passed to setconfig, to avoid storing boolean as string

Diffstat:
Melectrum | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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)