python 3.5

This commit is contained in:
Emmanuel Garette 2019-08-22 16:24:41 +02:00 committed by Emmanuel Garette
parent 2184332e62
commit f1db5c87f6

View file

@ -122,7 +122,7 @@ class TiramisuNamespace(Namespace):
else:
display_value = true_value
choices = get_choice_list(option, option.property.get(), False)
raise ValueError("argument {}: invalid choice: '{}' (choose from {})".format(self.arguments[key], display_value, ', '.join([f"'{val}'" for val in choices])))
raise ValueError("argument {}: invalid choice: '{}' (choose from {})".format(self.arguments[key], display_value, ', '.join(["'{}'".format(val) for val in choices])))
else:
raise err