Mostly PEP
This commit is contained in:
parent
94f4185e32
commit
a2575c20b8
|
|
@ -140,11 +140,10 @@ class PreParser:
|
||||||
for line in self.readlines():
|
for line in self.readlines():
|
||||||
results = regex.match(_rgx_alias, line)
|
results = regex.match(_rgx_alias, line)
|
||||||
if results:
|
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)]
|
alias_list += [(e, line_count)]
|
||||||
line_count += 1
|
line_count += 1
|
||||||
|
|
||||||
|
|
||||||
def get_shortcut_from_config(self, shortcut):
|
def get_shortcut_from_config(self, shortcut):
|
||||||
"""
|
"""
|
||||||
Fetches shortcut paths from aliases.yaml
|
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'))
|
# rich.inspect(_rgx_alias.match(string_to_match).captures('alias_name', 'class', 'variables'))
|
||||||
for e in _rgx_alias.match(string_to_match).captures(1):
|
for e in _rgx_alias.match(string_to_match).captures(1):
|
||||||
rich.inspect(e.captures('alias_name', 'class', 'variables'))
|
rich.inspect(e.captures('alias_name', 'class', 'variables'))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ def begin_parsing(p_env):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def begin_export():
|
def begin_export(p_env):
|
||||||
"""
|
"""
|
||||||
Replaces all parsed values with their attributed
|
Replaces all parsed values with their attributed
|
||||||
correspondences as per the template_manager
|
correspondences as per the template_manager
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue