Hide some pylint errors
This commit is contained in:
parent
8d4e815f3e
commit
134f72db17
|
@ -42,7 +42,7 @@ from gajim.common.contacts import LegacyContactsAPI
|
|||
from gajim.common.events import Events
|
||||
|
||||
interface = None # The actual interface (the gtk one for the moment)
|
||||
thread_interface = None # Interface to run a thread and then a callback
|
||||
thread_interface = lambda *args: None # Interface to run a thread and then a callback
|
||||
config = config.Config()
|
||||
version = config.get('version')
|
||||
connections = {} # 'account name': 'account (connection.Connection) instance'
|
||||
|
|
|
@ -495,12 +495,12 @@ class JingleSession:
|
|||
parse_result = self.__parse_contents(jingle)
|
||||
contents = parse_result[0]
|
||||
rejected_contents = parse_result[1]
|
||||
for name, creator in rejected_contents:
|
||||
# for name, creator in rejected_contents:
|
||||
# TODO
|
||||
content = JingleContent()
|
||||
self.add_content(name, content, creator)
|
||||
self.__content_reject(content)
|
||||
self.contents[(content.creator, content.name)].destroy()
|
||||
# content = JingleContent()
|
||||
# self.add_content(name, content, creator)
|
||||
# self.__content_reject(content)
|
||||
# self.contents[(content.creator, content.name)].destroy()
|
||||
app.nec.push_incoming_event(JingleRequestReceivedEvent(None,
|
||||
conn=self.connection,
|
||||
jingle_session=self,
|
||||
|
|
|
@ -48,7 +48,7 @@ def test_bonjour():
|
|||
import pybonjour
|
||||
except ImportError:
|
||||
return False
|
||||
except WindowsError:
|
||||
except WindowsError: # pylint: disable=undefined-variable
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue