mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-13 02:23:38 +01:00
utils: pep8 fixes
This commit is contained in:
@ -264,7 +264,7 @@ def format_literal(lit):
|
||||
elif hasattr(lit, 'pattern'): # regex
|
||||
return '``r\'{}\'``'.format(lit.pattern)
|
||||
elif isinstance(lit, dict):
|
||||
content = indent(',\n'.join("{}: {}".format(key,val) for (key,val) in lit.items()))
|
||||
content = indent(',\n'.join("{}: {}".format(key, val) for (key, val) in lit.items()))
|
||||
return '::\n\n{}'.format(indent('{{\n{}\n}}'.format(content)))
|
||||
else:
|
||||
return '``{}``'.format(lit)
|
||||
|
Reference in New Issue
Block a user