Hide some pylint errors
This commit is contained in:
parent
8d4e815f3e
commit
134f72db17
3 changed files with 7 additions and 7 deletions
|
@ -42,7 +42,7 @@ from gajim.common.contacts import LegacyContactsAPI
|
||||||
from gajim.common.events import Events
|
from gajim.common.events import Events
|
||||||
|
|
||||||
interface = None # The actual interface (the gtk one for the moment)
|
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()
|
config = config.Config()
|
||||||
version = config.get('version')
|
version = config.get('version')
|
||||||
connections = {} # 'account name': 'account (connection.Connection) instance'
|
connections = {} # 'account name': 'account (connection.Connection) instance'
|
||||||
|
|
|
@ -495,12 +495,12 @@ class JingleSession:
|
||||||
parse_result = self.__parse_contents(jingle)
|
parse_result = self.__parse_contents(jingle)
|
||||||
contents = parse_result[0]
|
contents = parse_result[0]
|
||||||
rejected_contents = parse_result[1]
|
rejected_contents = parse_result[1]
|
||||||
for name, creator in rejected_contents:
|
# for name, creator in rejected_contents:
|
||||||
# TODO
|
# TODO
|
||||||
content = JingleContent()
|
# content = JingleContent()
|
||||||
self.add_content(name, content, creator)
|
# self.add_content(name, content, creator)
|
||||||
self.__content_reject(content)
|
# self.__content_reject(content)
|
||||||
self.contents[(content.creator, content.name)].destroy()
|
# self.contents[(content.creator, content.name)].destroy()
|
||||||
app.nec.push_incoming_event(JingleRequestReceivedEvent(None,
|
app.nec.push_incoming_event(JingleRequestReceivedEvent(None,
|
||||||
conn=self.connection,
|
conn=self.connection,
|
||||||
jingle_session=self,
|
jingle_session=self,
|
||||||
|
|
|
@ -48,7 +48,7 @@ def test_bonjour():
|
||||||
import pybonjour
|
import pybonjour
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return False
|
return False
|
||||||
except WindowsError:
|
except WindowsError: # pylint: disable=undefined-variable
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue