From 033e82196348d477507a482204f2be7aafe3f920 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 21 Feb 2014 13:31:10 -0500 Subject: [PATCH] jabber_mirror: Use consistent method name casing (imported from commit 0f68b94bab992ba20aa7c185fa40eafeea22f92e) --- bots/jabber_mirror.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bots/jabber_mirror.py b/bots/jabber_mirror.py index 503b84e..e789465 100755 --- a/bots/jabber_mirror.py +++ b/bots/jabber_mirror.py @@ -60,7 +60,7 @@ class JabberToZulipBot(ClientXMPP): import ssl self.ssl_version = ssl.PROTOCOL_SSLv3 - def setZulipClient(self, client): + def set_zulip_client(self, client): self.zulip = client def session_start(self, event): @@ -135,7 +135,7 @@ class ZulipToJabberBot(zulip.Client): self.jabber = None self.email = email - def setJabberClient(self, client): + def set_jabber_client(self, client): self.jabber = client def process_message(self, event): @@ -224,8 +224,8 @@ if __name__ == '__main__': openfire=options.openfire) xmpp.connect(use_tls=not options.no_use_tls) xmpp.process(block=False) - xmpp.setZulipClient(zulip) - zulip.setJabberClient(xmpp) + xmpp.set_zulip_client(zulip) + zulip.set_jabber_client(xmpp) try: logging.info("Connecting to Zulip.") zulip.call_on_each_event(zulip.process_message)