Skip to content

Commit a8aec78

Browse files
committed
ruff: Fix N816 Variable in global scope should not be mixedCase.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 87e7d31 commit a8aec78

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

zulip/integrations/jabber/jabber_mirror_backend.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,11 @@ def config_error(msg: str) -> None:
425425
"in the Zulip configuration file or on the commandline"
426426
)
427427

428-
zulipToJabber = ZulipToJabberBot(
428+
zulip_to_jabber = ZulipToJabberBot(
429429
zulip.init_from_options(options, "JabberMirror/" + __version__)
430430
)
431431
# This won't work for open realms that don't have a consistent domain
432-
options.zulip_domain = zulipToJabber.client.email.partition("@")[-1]
432+
options.zulip_domain = zulip_to_jabber.client.email.partition("@")[-1]
433433

434434
try:
435435
jid = JID(options.jid)
@@ -439,7 +439,7 @@ def config_error(msg: str) -> None:
439439
if options.conference_domain is None:
440440
options.conference_domain = f"conference.{jid.domain}"
441441

442-
xmpp = JabberToZulipBot(jid, options.jabber_password, get_rooms(zulipToJabber))
442+
xmpp = JabberToZulipBot(jid, options.jabber_password, get_rooms(zulip_to_jabber))
443443

444444
address = None
445445
if options.jabber_server_address:
@@ -448,16 +448,16 @@ def config_error(msg: str) -> None:
448448
if not xmpp.connect(use_tls=not options.no_use_tls, address=address):
449449
sys.exit("Unable to connect to Jabber server")
450450

451-
xmpp.set_zulip_client(zulipToJabber)
452-
zulipToJabber.set_jabber_client(xmpp)
451+
xmpp.set_zulip_client(zulip_to_jabber)
452+
zulip_to_jabber.set_jabber_client(xmpp)
453453

454454
xmpp.process(block=False)
455455
event_types = ["stream"] if options.mode == "public" else ["message", "subscription"]
456456

457457
try:
458458
logging.info("Connecting to Zulip.")
459-
zulipToJabber.client.call_on_each_event(
460-
zulipToJabber.process_event, event_types=event_types
459+
zulip_to_jabber.client.call_on_each_event(
460+
zulip_to_jabber.process_event, event_types=event_types
461461
)
462462
except BaseException:
463463
logging.exception("Exception in main loop")

0 commit comments

Comments
 (0)