Commit c89e589d authored by Philipp Hörist's avatar Philipp Hörist
Browse files

cq: Fix pylint errors

parent e9c38fe4
Pipeline #10872 failed with stages
in 37 seconds
......@@ -32,7 +32,8 @@ def run_pylint_test():
cmd = [
'pylint',
'nbxmpp',
f'--disable={",".join(DISABLED_CHECKS)}'
f'--disable={",".join(DISABLED_CHECKS)}',
'--ignore=examples'
]
try:
......
......@@ -69,18 +69,22 @@ class TCPConnection(Connection):
if self._con is None:
return None
if min_version('GLib', '2.69.0'):
tls_con = self._con.get_base_io_stream()
return tls_con.get_protocol_version()
if not min_version('GLib', '2.69.0'):
return None
tls_con = self._con.get_base_io_stream()
return tls_con.get_protocol_version()
@property
def ciphersuite(self) -> Optional[int]:
if self._con is None:
return None
if min_version('GLib', '2.69.0'):
tls_con = self._con.get_base_io_stream()
return tls_con.get_ciphersuite_name()
if not min_version('GLib', '2.69.0'):
return None
tls_con = self._con.get_base_io_stream()
return tls_con.get_ciphersuite_name()
def connect(self):
self.state = TCPState.CONNECTING
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment