From 3f167cb650e3330c496d04b34d61506ccc33f831 Mon Sep 17 00:00:00 2001 From: Jimbo77 Date: Wed, 22 Aug 2012 19:50:21 -0700 Subject: [PATCH] got rid of magic number --- lib/exchange_rate.py | 2 +- lib/gui_lite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/exchange_rate.py b/lib/exchange_rate.py index e8c9fac2..b868b1b9 100644 --- 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 index a88ec4a9..15971f7e 100644 --- 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):