cosmetic
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 14 Mar 2016 11:55:43 +0000 (12:55 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 14 Mar 2016 12:01:07 +0000 (13:01 +0100)
nepi/execution/attribute.py
nepi/resources/linux/application.py

index df45bc9..df47793 100644 (file)
@@ -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)
 
index fe4ca5a..94bd5e9 100644 (file)
@@ -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