Add exceptions for some pylint errors
until we find out where type inference has gone very wrong.
This commit is contained in:
parent
ea2d76864d
commit
d80ae218aa
2 changed files with 4 additions and 0 deletions
|
@ -165,6 +165,8 @@ class HandlerCore:
|
||||||
xml=message.xml.find(
|
xml=message.xml.find(
|
||||||
'{http://jabber.org/protocol/muc#user}x/{http://jabber.org/protocol/muc#user}invite'
|
'{http://jabber.org/protocol/muc#user}x/{http://jabber.org/protocol/muc#user}invite'
|
||||||
))
|
))
|
||||||
|
# TODO: find out why pylint thinks "inviter" is a list
|
||||||
|
#pylint: disable=no-member
|
||||||
inviter = invite['from']
|
inviter = invite['from']
|
||||||
reason = invite['reason']
|
reason = invite['reason']
|
||||||
password = invite['password']
|
password = invite['password']
|
||||||
|
@ -1520,6 +1522,7 @@ class HandlerCore:
|
||||||
der = ssl.PEM_cert_to_DER_cert(pem)
|
der = ssl.PEM_cert_to_DER_cert(pem)
|
||||||
asn1 = pyasn1.codec.der.decoder.decode(
|
asn1 = pyasn1.codec.der.decoder.decode(
|
||||||
der, asn1Spec=pyasn1_modules.rfc2459.Certificate())[0]
|
der, asn1Spec=pyasn1_modules.rfc2459.Certificate())[0]
|
||||||
|
#pylint: disable=no-member
|
||||||
spki = asn1.getComponentByName("tbsCertificate").getComponentByName(
|
spki = asn1.getComponentByName("tbsCertificate").getComponentByName(
|
||||||
"subjectPublicKeyInfo")
|
"subjectPublicKeyInfo")
|
||||||
spki_digest = sha256(
|
spki_digest = sha256(
|
||||||
|
|
|
@ -86,6 +86,7 @@ class BaseTextWin(Win):
|
||||||
Return the number of lines that are built for the given
|
Return the number of lines that are built for the given
|
||||||
message.
|
message.
|
||||||
"""
|
"""
|
||||||
|
#pylint: disable=assignment-from-no-return
|
||||||
lines = self.build_message(
|
lines = self.build_message(
|
||||||
message, timestamp=timestamp, nick_size=nick_size)
|
message, timestamp=timestamp, nick_size=nick_size)
|
||||||
if self.lock:
|
if self.lock:
|
||||||
|
|
Loading…
Reference in a new issue