URI: 
       tchanged lookup_rate() to non-public - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 9fc4e1a1b10a486d8c56d8c08f1d86d23dfd2e5e
   DIR parent 3f167cb650e3330c496d04b34d61506ccc33f831
  HTML Author: Jimbo77 <onlineregular@gmail.com>
       Date:   Wed, 22 Aug 2012 20:11:38 -0700
       
       changed lookup_rate() to non-public
       
       Diffstat:
         M lib/exchange_rate.py                |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/lib/exchange_rate.py b/lib/exchange_rate.py
       t@@ -40,16 +40,16 @@ class Exchanger(threading.Thread):
                # 4 = BTC:PLN
                quote_currencies = {}
                try:
       -            quote_currencies["GBP"] = self.lookup_rate(response, 1)
       -            quote_currencies["EUR"] = self.lookup_rate(response, 2)
       -            quote_currencies["USD"] = self.lookup_rate(response, 3)
       +            quote_currencies["GBP"] = self._lookup_rate(response, 1)
       +            quote_currencies["EUR"] = self._lookup_rate(response, 2)
       +            quote_currencies["USD"] = self._lookup_rate(response, 3)
                    with self.lock:
                        self.quote_currencies = quote_currencies
                    self.parent.emit(SIGNAL("refresh_balance()"))
                except KeyError:
                    pass
        
       -    def lookup_rate(self, response, quote_id):
       +    def _lookup_rate(self, response, quote_id):
                return decimal.Decimal(response[str(quote_id)]["last"])
        
        if __name__ == "__main__":