reformat with black

This commit is contained in:
Jakob Ketterl
2019-12-28 01:24:07 +01:00
parent e5724620a8
commit 1a3a5b43a0
15 changed files with 48 additions and 47 deletions

View File

@ -58,7 +58,7 @@ class Option(CommandMapping):
def map(self, value):
if value is not None:
if isinstance(value, str) and " " in value:
template = "{0} \"{1}\""
template = '{0} "{1}"'
else:
template = "{0} {1}"
return template.format(self.option, value)