URI: 
       tdeep copy output to prevent side-effect - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 2cb5b14b9b9c57b08e020ff01b705df2e9e1237e
   DIR parent 9afe0d8aaf19776d6f28576f217af7dd9c44f349
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Wed, 27 Feb 2013 09:09:58 +0100
       
       deep copy output to prevent side-effect
       
       Diffstat:
         M lib/commands.py                     |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/commands.py b/lib/commands.py
       t@@ -121,7 +121,8 @@ class Commands:
                return h
        
            def listunspent(self):
       -        l = self.wallet.get_unspent_coins()
       +        import copy
       +        l = copy.deepcopy(self.wallet.get_unspent_coins())
                for i in l: i["value"] = i["value"]*1e-8
                return l