From 6e711e2a04ab60b961907c49bf1368555cf93c78 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 14 Mar 2016 12:55:43 +0100 Subject: [PATCH] cosmetic --- nepi/execution/attribute.py | 8 ++++---- nepi/resources/linux/application.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.43.0