From 3e6df9a319418e5e037bf1cb23a6d3d52bb99256 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Thu, 20 Oct 2022 17:37:05 +0300 Subject: [PATCH] Fix pylint issue in bitmessageqt.address_dialogs --- src/bitmessageqt/address_dialogs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bitmessageqt/address_dialogs.py b/src/bitmessageqt/address_dialogs.py index d73a454d..3d3e5e37 100644 --- a/src/bitmessageqt/address_dialogs.py +++ b/src/bitmessageqt/address_dialogs.py @@ -11,7 +11,7 @@ import queues import widgets from account import AccountMixin, GatewayAccount, MailchuckAccount, accountClass from addresses import addBMIfNotPresent, decodeAddress, encodeVarint -from bmconfigparser import config +from bmconfigparser import config as global_config from inventory import Inventory from tr import _translate @@ -121,7 +121,7 @@ class NewAddressDialog(QtGui.QDialog): # Let's fill out the 'existing address' combo box with addresses # from the 'Your Identities' tab. - for address in config.addresses(True): + for address in global_config.addresses(True): self.radioButtonExisting.click() self.comboBoxExisting.addItem(address) self.groupBoxDeterministic.setHidden(True) @@ -231,7 +231,7 @@ class SpecialAddressBehaviorDialog(QtGui.QDialog): QDialog for special address behaviour (e.g. mailing list functionality) """ - def __init__(self, parent=None, config=None): + def __init__(self, parent=None, config=global_config): super(SpecialAddressBehaviorDialog, self).__init__(parent) widgets.load('specialaddressbehavior.ui', self) self.address = parent.getCurrentAccount() @@ -293,7 +293,7 @@ class SpecialAddressBehaviorDialog(QtGui.QDialog): class EmailGatewayDialog(QtGui.QDialog): """QDialog for email gateway control""" - def __init__(self, parent, config=None, account=None): + def __init__(self, parent, config=global_config, account=None): super(EmailGatewayDialog, self).__init__(parent) widgets.load('emailgateway.ui', self) self.parent = parent