tgot rid of magic number - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3f167cb650e3330c496d04b34d61506ccc33f831 DIR parent c2713f6089755dfd59f89088f69cc0f863b84506 HTML Author: Jimbo77 <onlineregular@gmail.com> Date: Wed, 22 Aug 2012 19:50:21 -0700 got rid of magic number Diffstat: M lib/exchange_rate.py | 2 +- M lib/gui_lite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/exchange_rate.py b/lib/exchange_rate.py t@@ -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 DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py t@@ -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):