Skip to content
Snippets Groups Projects
Commit 221345d0 authored by florian's avatar florian
Browse files

STY: autopep8'd

parent 4c901109
No related branches found
No related tags found
2 merge requests!108Release 0.5.0,!104Create a new scanner module and move functions from crawl module there
Pipeline #34909 failed
...@@ -224,7 +224,6 @@ class Crawler(object): ...@@ -224,7 +224,6 @@ class Crawler(object):
warnings.warn(DeprecationWarning( warnings.warn(DeprecationWarning(
"The generalStore argument of the Crawler class is deprecated and has no effect.")) "The generalStore argument of the Crawler class is deprecated and has no effect."))
def load_converters(self, definition: dict): def load_converters(self, definition: dict):
warnings.warn(DeprecationWarning( warnings.warn(DeprecationWarning(
"The function load_converters in the crawl module is deprecated. " "The function load_converters in the crawl module is deprecated. "
...@@ -246,7 +245,6 @@ class Crawler(object): ...@@ -246,7 +245,6 @@ class Crawler(object):
def generate_run_id(self): def generate_run_id(self):
self.run_id = uuid.uuid1() self.run_id = uuid.uuid1()
def start_crawling(self, items: Union[list[StructureElement], StructureElement], def start_crawling(self, items: Union[list[StructureElement], StructureElement],
crawler_definition: dict, crawler_definition: dict,
converter_registry: dict, converter_registry: dict,
...@@ -261,7 +259,6 @@ class Crawler(object): ...@@ -261,7 +259,6 @@ class Crawler(object):
return scan_structure_elements( return scan_structure_elements(
items, crawler_definition, converter_registry, restrict_path) items, crawler_definition, converter_registry, restrict_path)
def crawl_directory(self, def crawl_directory(self,
crawled_directory: str, crawled_directory: str,
crawler_definition_path: str, crawler_definition_path: str,
...@@ -923,7 +920,6 @@ ____________________\n""".format(i + 1, len(pending_changes)) + str(el[3])) ...@@ -923,7 +920,6 @@ ____________________\n""".format(i + 1, len(pending_changes)) + str(el[3]))
Save the information contained in a debug_tree to a file named filename. Save the information contained in a debug_tree to a file named filename.
""" """
paths: dict[str, Union[dict, list]] = dict() paths: dict[str, Union[dict, list]] = dict()
def flatten_debug_info(key): def flatten_debug_info(key):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment