Skip to content

Commit 9f3e1ef

Browse files
committed
Comment regarding raw docstring and sort imports
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
1 parent 5b79c9c commit 9f3e1ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vulnerabilities/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import dataclasses
2525
import json
2626
import re
27-
from typing import Optional
2827
from typing import List
28+
from typing import Optional
2929
from typing import Tuple
3030

3131
import requests
@@ -182,6 +182,7 @@ def split_markdown_front_matter(text: str) -> Tuple[str, str]:
182182
>>> split_markdown_front_matter(text)
183183
('title: DUMMY-SECURITY-2019-001\ndescription: Incorrect access control.\ncves: [CVE-2042-1337]', '# Markdown starts here')
184184
"""
185+
# The doctest contains \n and for the sake of clarity I chose raw strings than escaping those.
185186
lines = text.splitlines()
186187
if lines[0] == "---":
187188
lines = lines[1:]

0 commit comments

Comments
 (0)