diff --git a/src/bootstraparse/modules/preparser.py b/src/bootstraparse/modules/preparser.py index bc4dce2..7f6a1ab 100644 --- a/src/bootstraparse/modules/preparser.py +++ b/src/bootstraparse/modules/preparser.py @@ -140,11 +140,10 @@ class PreParser: for line in self.readlines(): results = regex.match(_rgx_alias, line) if results: - for e in results.captures('alias_name', 'class','variables'): + for e in results.captures('alias_name', 'class', 'variables'): alias_list += [(e, line_count)] line_count += 1 - def get_shortcut_from_config(self, shortcut): """ Fetches shortcut paths from aliases.yaml @@ -241,4 +240,3 @@ if __name__ == "__main__": # pragma: no cover # rich.inspect(_rgx_alias.match(string_to_match).captures('alias_name', 'class', 'variables')) for e in _rgx_alias.match(string_to_match).captures(1): rich.inspect(e.captures('alias_name', 'class', 'variables')) - diff --git a/src/bootstraparse/modules/sitecreator.py b/src/bootstraparse/modules/sitecreator.py index ead751e..679a941 100644 --- a/src/bootstraparse/modules/sitecreator.py +++ b/src/bootstraparse/modules/sitecreator.py @@ -86,7 +86,7 @@ def begin_parsing(p_env): pass -def begin_export(): +def begin_export(p_env): """ Replaces all parsed values with their attributed correspondences as per the template_manager