Fix pylint issue in bitmessageqt.address_dialogs

This commit is contained in:
Lee Miller 2022-10-20 17:37:05 +03:00
parent 58a9ee24dd
commit 3e6df9a319
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -11,7 +11,7 @@ import queues
import widgets import widgets
from account import AccountMixin, GatewayAccount, MailchuckAccount, accountClass from account import AccountMixin, GatewayAccount, MailchuckAccount, accountClass
from addresses import addBMIfNotPresent, decodeAddress, encodeVarint from addresses import addBMIfNotPresent, decodeAddress, encodeVarint
from bmconfigparser import config from bmconfigparser import config as global_config
from inventory import Inventory from inventory import Inventory
from tr import _translate from tr import _translate
@ -121,7 +121,7 @@ class NewAddressDialog(QtGui.QDialog):
# Let's fill out the 'existing address' combo box with addresses # Let's fill out the 'existing address' combo box with addresses
# from the 'Your Identities' tab. # from the 'Your Identities' tab.
for address in config.addresses(True): for address in global_config.addresses(True):
self.radioButtonExisting.click() self.radioButtonExisting.click()
self.comboBoxExisting.addItem(address) self.comboBoxExisting.addItem(address)
self.groupBoxDeterministic.setHidden(True) self.groupBoxDeterministic.setHidden(True)
@ -231,7 +231,7 @@ class SpecialAddressBehaviorDialog(QtGui.QDialog):
QDialog for special address behaviour (e.g. mailing list functionality) 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) super(SpecialAddressBehaviorDialog, self).__init__(parent)
widgets.load('specialaddressbehavior.ui', self) widgets.load('specialaddressbehavior.ui', self)
self.address = parent.getCurrentAccount() self.address = parent.getCurrentAccount()
@ -293,7 +293,7 @@ class SpecialAddressBehaviorDialog(QtGui.QDialog):
class EmailGatewayDialog(QtGui.QDialog): class EmailGatewayDialog(QtGui.QDialog):
"""QDialog for email gateway control""" """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) super(EmailGatewayDialog, self).__init__(parent)
widgets.load('emailgateway.ui', self) widgets.load('emailgateway.ui', self)
self.parent = parent self.parent = parent