Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
134f72db by Yann Leboulanger at 2017-08-24T23:20:35+02:00
Hide some pylint errors
- - - - -
3 changed files:
- gajim/common/app.py
- gajim/common/jingle_session.py
- gajim/common/zeroconf/zeroconf.py
Changes:
=====================================
gajim/common/app.py
=====================================
--- a/gajim/common/app.py
+++ b/gajim/common/app.py
@@ -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'
=====================================
gajim/common/jingle_session.py
=====================================
--- a/gajim/common/jingle_session.py
+++ b/gajim/common/jingle_session.py
@@ -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,
=====================================
gajim/common/zeroconf/zeroconf.py
=====================================
--- a/gajim/common/zeroconf/zeroconf.py
+++ b/gajim/common/zeroconf/zeroconf.py
@@ -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
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/134f72db173d1f1ef7e4061226dd0c150aaf667e
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/134f72db173d1f1ef7e4061226dd0c150aaf667e
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits