electrum

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

commit 3f167cb650e3330c496d04b34d61506ccc33f831
parent c2713f6089755dfd59f89088f69cc0f863b84506
Author: Jimbo77 <onlineregular@gmail.com>
Date:   Wed, 22 Aug 2012 19:50:21 -0700

got rid of magic number

Diffstat:
Mlib/exchange_rate.py | 2+-
Mlib/gui_lite.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/exchange_rate.py b/lib/exchange_rate.py @@ -31,7 +31,7 @@ class Exchanger(threading.Thread): connection = httplib.HTTPSConnection('intersango.com') connection.request("GET", "/api/ticker.php") response = connection.getresponse() - if response.status == 404: + if response.reason == httplib.responses[httplib.NOT_FOUND]: return response = json.loads(response.read()) # 1 = BTC:GBP diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -535,7 +535,7 @@ class MiniActuator: set_quote_currency(currency) def set_config_currency(self, conversion_currency): - """Change the fiat currency conversion country.""" + """Change the wallet fiat currency country.""" self.wallet.conversion_currency = conversion_currency def copy_address(self, receive_popup):