From: Thierry Parmentelat Date: Mon, 14 Mar 2016 11:55:43 +0000 (+0100) Subject: cosmetic X-Git-Tag: nepi-6.1.0-pypi~2 X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=commitdiff_plain;h=6e711e2a04ab60b961907c49bf1368555cf93c78 cosmetic --- diff --git a/nepi/execution/attribute.py b/nepi/execution/attribute.py index df45bc9e..df477930 100644 --- a/nepi/execution/attribute.py +++ b/nepi/execution/attribute.py @@ -61,8 +61,8 @@ class Attribute(object): """ def __init__(self, name, help, type = Types.String, - flags = None, default = None, allowed = None, - range = None, set_hook = None): + flags = None, default = None, allowed = None, + range = None, set_hook = None): """ :param name: Name of the Attribute :type name: str @@ -178,8 +178,8 @@ class Attribute(object): self._value = value else: - raise ValueError("Invalid value %s for attribute %s" % - (str(value), self.name)) + raise ValueError("Invalid value {} for attribute {}" + .format(value, self.name)) value = property(get_value, set_value) diff --git a/nepi/resources/linux/application.py b/nepi/resources/linux/application.py index fe4ca5a0..94bd5e93 100644 --- a/nepi/resources/linux/application.py +++ b/nepi/resources/linux/application.py @@ -158,8 +158,8 @@ class LinuxApplication(ResourceManager): Attribute("stdin", "Standard input for the 'command'", flags = Flags.Design)) cls._register_attribute( - Attribute("tearDown", "Command to be executed just before " - "releasing the resource", + Attribute("tearDown", + "Command to be executed just before releasing the resource", flags = Flags.Design)) @classmethod