Skip to content

Commit e481f0b

Browse files
committed
Code quality
1 parent ef463be commit e481f0b

11 files changed

Lines changed: 15 additions & 14 deletions

src/bitmessageqt/messagecompose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Message editor with a wheel zoom functionality
33
"""
44

5-
from PyQt4 import QtCore, QtGui # pylint disable:import-error
5+
from PyQt4 import QtCore, QtGui # pylint disable=import-error
66

77

88
class MessageCompose(QtGui.QTextEdit):

src/bitmessageqt/messageview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
"""
77

8-
from PyQt4 import QtCore, QtGui
8+
from PyQt4 import QtCore, QtGui # pylint: disable=import-error
99

1010
from safehtmlparser import SafeHTMLParser
1111
from tr import _translate

src/bitmessageqt/migrationwizard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python2.7
2-
from PyQt4 import QtGui
2+
from PyQt4 import QtGui # pylint: disable=import-error
33

44

55
class MigrationWizardIntroPage(QtGui.QWizardPage):
@@ -21,7 +21,7 @@ def nextId(self):
2121

2222

2323
class MigrationWizardAddressesPage(QtGui.QWizardPage):
24-
def __init__(self, addresses):
24+
def __init__(self, addresses): # pylint: disable=unused-argument
2525
super(QtGui.QWizardPage, self).__init__()
2626
self.setTitle("Addresses")
2727

src/bitmessageqt/networkstatus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import time
66

7-
from PyQt4 import QtCore, QtGui
7+
from PyQt4 import QtCore, QtGui # pylint: disable=import-error
88

99
import l10n
1010
import network.stats

src/bitmessageqt/retranslateui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from PyQt4 import QtGui
1+
from PyQt4 import QtGui # pylint: disable=import-error
22
import widgets
33

44

src/bitmessageqt/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import tempfile
88

99
import six
10-
from PyQt4 import QtCore, QtGui
10+
from PyQt4 import QtCore, QtGui # pylint: disable=import-error
1111

1212
import debug
1313
import defaults

src/bitmessageqt/statusbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Status bar Module"""
33

44
from time import time
5-
from PyQt4 import QtGui
5+
from PyQt4 import QtGui # pylint: disable=import-error
66

77

88
class BMStatusBar(QtGui.QStatusBar):

src/bitmessageqt/support.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
import time
88

9-
from PyQt4 import QtCore
9+
from PyQt4 import QtCore # pylint: disable=import-error
1010

1111
import account
1212
import defaults
@@ -133,6 +133,7 @@ def createSupportMessage(myapp):
133133
architecture = "32" if ctypes.sizeof(ctypes.c_voidp) == 4 else "64"
134134
pythonversion = sys.version
135135

136+
# pylint: disable=protected-access
136137
opensslversion = "%s (Python internal), %s (external for PyElliptic)" % (
137138
ssl.OPENSSL_VERSION, OpenSSL._version)
138139

src/bitmessageqt/uisignaler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from PyQt4.QtCore import QThread, SIGNAL
2+
from PyQt4.QtCore import QThread, SIGNAL # pylint: disable=import-error
33
import sys
44

55
import queues

src/bitmessageqt/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import hashlib
22
import os
33

4-
from PyQt4 import QtGui
4+
from PyQt4 import QtGui # pylint: disable=import-error
55

66
import state
77
from addresses import addBMIfNotPresent
@@ -56,7 +56,7 @@ def identiconize(address):
5656
elif identicon_lib == 'pydenticon':
5757
# Here you could load pydenticon.py
5858
# (just put it in the "src" folder of your Bitmessage source)
59-
from pydenticon import Pydenticon
59+
from pydenticon import Pydenticon # pylint: disable=import-error
6060
# It is not included in the source, because it is licensed under GPLv3
6161
# GPLv3 is a copyleft license that would influence our licensing
6262
# Find the source here:
@@ -65,7 +65,7 @@ def identiconize(address):
6565
# https://python-pillow.org/
6666
idcon_render = Pydenticon(
6767
addBMIfNotPresent(address) + identiconsuffix, size * 3)
68-
rendering = idcon_render._render()
68+
rendering = idcon_render._render() # pylint: disable=protected-access
6969
data = rendering.convert("RGBA").tostring("raw", "RGBA")
7070
qim = QtGui.QImage(data, size, size, QtGui.QImage.Format_ARGB32)
7171
pix = QtGui.QPixmap.fromImage(qim)

0 commit comments

Comments
 (0)