Skip to content
Snippets Groups Projects
Commit 20fce54b authored by florian's avatar florian
Browse files

STY: autopep8'd

parent b4783ea5
No related branches found
No related tags found
2 merge requests!160STY: styling,!127More documentation (docstrings) of parameters add/remove_prefix and restricted_path
Pipeline #39820 passed
......@@ -1187,7 +1187,7 @@ def _fix_file_paths(crawled_data: list[db.Entity],
If remove_prefix is not None the given prefix will be removed from the front of
elem.path. In this case a RuntimeError will be raised if any path of a file does
not begin with "remove_prefix".
"""
for elem in crawled_data:
if isinstance(elem, db.File):
......
......@@ -22,7 +22,6 @@
from caoscrawler.crawl import split_restricted_path
def test_split_restricted_path():
assert split_restricted_path("") == []
assert split_restricted_path("/") == []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment