tfix flake8 test - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b90cbeb0ba144db0f663d374cbebcbff3bf788dc DIR parent 6696f40e3668d393af455d89eef3223bc6f55b54 HTML Author: ThomasV <thomasv@electrum.org> Date: Tue, 18 Feb 2020 14:05:28 +0100 fix flake8 test Diffstat: M electrum/gui/kivy/uix/dialogs/ligh… | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/kivy/uix/dialogs/lightning_tx_dialog.py b/electrum/gui/kivy/uix/dialogs/lightning_tx_dialog.py t@@ -98,7 +98,7 @@ class LightningTxDialog(Factory.Popup): self.app = app # type: ElectrumWindow self.wallet = self.app.wallet self._action_button_fn = lambda btn: None - self.is_sent = bool(tx_item['direction'] is 'sent') + self.is_sent = bool(tx_item['direction'] == 'sent') self.description = tx_item['label'] self.timestamp = tx_item['timestamp'] self.date_str = datetime.fromtimestamp(self.timestamp).isoformat(' ')[:-3]