tfix indent - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 034bc64fe6989501e2f7cd9af28364d5318d49d1 DIR parent 7ddc29a912a2fdf6b2a307623a29c40823102c52 HTML Author: ThomasV <thomasv@gitorious> Date: Mon, 27 May 2013 21:14:38 +0200 fix indent Diffstat: M gui/qrcodewidget.py | 12 ++++++------ M plugins/qrscanner.py | 5 ++--- 2 files changed, 8 insertions(+), 9 deletions(-) --- DIR diff --git a/gui/qrcodewidget.py b/gui/qrcodewidget.py t@@ -18,12 +18,12 @@ class QRCodeWidget(QWidget): def set_addr(self, addr): if self.addr != addr: - if len(addr) < 128: - MinSize = 210 - else: - MinSize = 500 - self.setMinimumSize(MinSize, MinSize) - self.addr = addr + if len(addr) < 128: + MinSize = 210 + else: + MinSize = 500 + self.setMinimumSize(MinSize, MinSize) + self.addr = addr self.qr = None self.update() DIR diff --git a/plugins/qrscanner.py b/plugins/qrscanner.py t@@ -215,9 +215,8 @@ class Plugin(BasePlugin): def sign_raw_transaction(self, tx, input_info, dialog ="", password = ""): try: self.gui.wallet.signrawtransaction(tx, input_info, [], password) - txtext = json.dumps(tx.as_dict()).replace(' ', '') - self.show_tx_qrcode(txtext, 'Signed Transaction') - + txtext = json.dumps(tx.as_dict()).replace(' ', '') + self.show_tx_qrcode(txtext, 'Signed Transaction') except BaseException, e: self.gui.show_message(str(e))