Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

refactor: Rename remaining bugdown word to markdown in .py files.

Mohit Gupta08e74558a90c
diff --git a/zerver/lib/markdown/fenced_code.py b/zerver/lib/markdown/fenced_code.py
index f94596733a2..8ffdcea36d4 100644
--- a/zerver/lib/markdown/fenced_code.py
+++ b/zerver/lib/markdown/fenced_code.py
@@ -355,7 +355,7 @@ class FencedBlockPreprocessor(markdown.preprocessors.Preprocessor):
self.handlers[-1].done()
# This fiddly handling of new lines at the end of our output was done to make
- # existing tests pass. Bugdown is just kind of funny when it comes to new lines,
+ # existing tests pass. Markdown is just kind of funny when it comes to new lines,
# but we could probably remove this hack.
if len(output) > 2 and output[-2] != '':
output.append('')
diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.py
index 95a803bca6b..3bbdec39bd0 100644
--- a/zerver/lib/test_classes.py
+++ b/zerver/lib/test_classes.py
@@ -819,7 +819,7 @@ class ZulipTestCase(TestCase):
def simulated_markdown_failure(self) -> Iterator[None]:
'''
This raises a failure inside of the try/except block of
- bugdown.__init__.do_convert.
+ markdown.__init__.do_convert.
'''
with \
self.settings(ERROR_BOT=None), \
diff --git a/zerver/tests/test_thumbnail.py b/zerver/tests/test_thumbnail.py
index f8e7069690a..fb0983a3985 100644
--- a/zerver/tests/test_thumbnail.py
+++ b/zerver/tests/test_thumbnail.py
@@ -173,7 +173,7 @@ class ThumbnailTest(ZulipTestCase):
# Test full size image.
# We remove the forward slash infront of the `/user_uploads/` to match
- # bugdown behaviour.
+ # markdown behaviour.
quoted_uri = urllib.parse.quote(uri[1:], safe='')
result = self.client_get(f"/thumbnail?url={quoted_uri}&size=full")
self.assertEqual(result.status_code, 302, result)
@@ -197,7 +197,7 @@ class ThumbnailTest(ZulipTestCase):
uri = json["uri"]
# We remove the forward slash infront of the `/user_uploads/` to match
- # bugdown behaviour.
+ # markdown behaviour.
quoted_uri = urllib.parse.quote(uri[1:], safe='')
result = self.client_get(f"/thumbnail?url={quoted_uri}&size=full")
self.assertEqual(result.status_code, 302, result)