URI: 
       tminor.. move imports out of functions - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a2ed08615c684deb1cdbc56e9571aa48cc4183b1
   DIR parent 39db32c3cea7a88bdd262661cca268b9e5360eaf
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Tue, 18 Sep 2018 18:07:12 +0200
       
       minor.. move imports out of functions
       
       Diffstat:
         M electrum/gui/qt/history_list.py     |       2 +-
         M electrum/gui/qt/paytoedit.py        |       2 +-
         M electrum/wallet.py                  |       7 ++-----
       
       3 files changed, 4 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py
       t@@ -25,6 +25,7 @@
        
        import webbrowser
        import datetime
       +from datetime import date
        
        from electrum.address_synchronizer import TX_HEIGHT_LOCAL
        from .util import *
       t@@ -220,7 +221,6 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
                self.transactions = r['transactions']
                self.summary = r['summary']
                if not self.years and self.transactions:
       -            from datetime import date
                    start_date = self.transactions[0].get('date') or date.today()
                    end_date = self.transactions[-1].get('date') or date.today()
                    self.years = [str(i) for i in range(start_date.year, end_date.year + 1)]
   DIR diff --git a/electrum/gui/qt/paytoedit.py b/electrum/gui/qt/paytoedit.py
       t@@ -237,7 +237,7 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit):
        
                #if self.win.config.get('openalias_autoadd') == 'checked':
                self.win.contacts[key] = ('openalias', name)
       -        self.win.contact_list.on_update()
       +        self.win.contact_list.update()
        
                self.setFrozen(True)
                if data.get('type') == 'openalias':
   DIR diff --git a/electrum/wallet.py b/electrum/wallet.py
       t@@ -43,19 +43,17 @@ from .i18n import _
        from .util import (NotEnoughFunds, PrintError, UserCancelled, profiler,
                           format_satoshis, format_fee_satoshis, NoDynamicFeeEstimates,
                           TimeoutException, WalletFileException, BitcoinException,
       -                   InvalidPassword, format_time)
       -
       +                   InvalidPassword, format_time, timestamp_to_datetime, Satoshis,
       +                   Fiat)
        from .bitcoin import *
        from .version import *
        from .keystore import load_keystore, Hardware_KeyStore
        from .storage import multisig_type, STO_EV_PLAINTEXT, STO_EV_USER_PW, STO_EV_XPUB_PW
       -
        from . import transaction, bitcoin, coinchooser, paymentrequest, contacts
        from .transaction import Transaction, TxOutput, TxOutputHwInfo
        from .plugin import run_hook
        from .address_synchronizer import (AddressSynchronizer, TX_HEIGHT_LOCAL,
                                           TX_HEIGHT_UNCONF_PARENT, TX_HEIGHT_UNCONFIRMED)
       -
        from .paymentrequest import PR_PAID, PR_UNPAID, PR_UNKNOWN, PR_EXPIRED
        from .paymentrequest import InvoiceStore
        from .contacts import Contacts
       t@@ -388,7 +386,6 @@ class Abstract_Wallet(AddressSynchronizer):
        
            @profiler
            def get_full_history(self, domain=None, from_timestamp=None, to_timestamp=None, fx=None, show_addresses=False):
       -        from .util import timestamp_to_datetime, Satoshis, Fiat
                out = []
                income = 0
                expenditures = 0