mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
typos: Fix typos caught by typos.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 4cb2eded68
)
This commit is contained in:
committed by
Tim Abbott
parent
3a2a217fa0
commit
41a6511924
@@ -1362,7 +1362,7 @@ def do_convert_data(
|
||||
# Slack's export doesn't set the UTF-8 flag on each
|
||||
# filename entry, despite encoding them as such, so
|
||||
# zipfile mojibake's the output. Explicitly re-interpret
|
||||
# it as UTF-8 mis-decoded as cp437, the default.
|
||||
# it as UTF-8 misdecoded as cp437, the default.
|
||||
for fileinfo in zipObj.infolist():
|
||||
fileinfo.flag_bits |= 0x800
|
||||
fileinfo.filename = fileinfo.filename.encode("cp437").decode("utf-8")
|
||||
|
@@ -1464,7 +1464,7 @@ def get_incoming_message_ids(import_dir: Path, sort_by_date: bool) -> List[int]:
|
||||
# save memory and speed up the sort. For
|
||||
# Zulip-to-Zulip imports, the
|
||||
# message_id will generally be a good tiebreaker.
|
||||
# If we occasionally mis-order the ids for two
|
||||
# If we occasionally misorder the ids for two
|
||||
# messages from the same second, it's not the
|
||||
# end of the world, as it's likely those messages
|
||||
# arrived to the original server in somewhat
|
||||
|
@@ -737,7 +737,7 @@ class HomeTest(ZulipTestCase):
|
||||
self.assertIn(bots[2].id, bot_ids)
|
||||
self.assertIn(bots[2].id, active_ids)
|
||||
|
||||
# Make sure nobody got mis-bucketed.
|
||||
# Make sure nobody got misbucketed.
|
||||
self.assertNotIn(hamlet.id, non_active_ids)
|
||||
self.assertNotIn(defunct_user.id, active_ids)
|
||||
|
||||
|
@@ -41,7 +41,7 @@ def sentry_tunnel(
|
||||
# debugging more complicated.
|
||||
updated_body = request.body
|
||||
# If we fail to update the body for any reason, leave it as-is; it
|
||||
# is better to mis-report the IP than to drop the report entirely.
|
||||
# is better to misreport the IP than to drop the report entirely.
|
||||
with suppress(Exception):
|
||||
# This parses the Sentry ingestion format, known as an
|
||||
# Envelope. See https://develop.sentry.dev/sdk/envelopes/ for
|
||||
|
Reference in New Issue
Block a user