Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion compiler/python_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
('[^'].*?') | # module doc comment form 1
("[^"].*?") | # module doc comment form 2
(\'\'\'.*?(\'\'\')) | # module doc comment form 3
(""".*?""") # module doc comment form 4
(""".*?""") | # module doc comment form 4
(r""".*?""") # module doc comment form 5
)
[\\r\\n]+ # end of line(s) for Mac, Unix and/or Windows
)*
Expand Down
2 changes: 2 additions & 0 deletions compiler/python_archive_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def test_generate_main(self):
b"'''Triple-single-quote module \"'\n\n docstring'''\nBOILERPLATE\n"),
(b'"""Triple-double-quote module "\'\n\n docstring"""\n',
b'"""Triple-double-quote module "\'\n\n docstring"""\nBOILERPLATE\n'),
(b'r"""Triple-double-quote module "\'\n\n raw docstring"""\n',
b'r"""Triple-double-quote module "\'\n\n raw docstring"""\nBOILERPLATE\n'),
]
for main_content, expected in cases:
with test_utils.temp_file(main_content) as main_file:
Expand Down