]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
config.py: make it PEP8 compliant
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 17 Feb 2022 11:02:35 +0000 (16:32 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 22 Feb 2022 19:52:52 +0000 (12:52 -0700)
Make config.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/config.py

index b28da72fbad688688cf33ea3b99da952912ed2ee..d141ab91c2dd3964655ae6ce1320eb35a52427a3 100644 (file)
 # along with this library; if not, see <http://www.gnu.org/licenses>.
 #
 
-import consts
 from container import Container
-import os
 from process import Process
+import consts
 import utils
+import os
+
 
 class Config(object):
     def __init__(self, args, container=None):
@@ -36,8 +37,10 @@ class Config(object):
             else:
                 # Use the default container settings
                 self.container = Container(name=consts.DEFAULT_CONTAINER_NAME,
-                    stop_timeout=args.timeout, arch=None,
-                    distro=args.distro, release=args.release)
+                                           stop_timeout=args.timeout,
+                                           arch=None,
+                                           distro=args.distro,
+                                           release=args.release)
 
         self.process = Process()
 
@@ -49,19 +52,20 @@ class Config(object):
         self.verbose = False
 
     def __str__(self):
-        out_str = "Configuration\n"
+        out_str = 'Configuration\n'
         if self.args.container:
             out_str += utils.indent(str(self.container), 4)
         out_str += utils.indent(str(self.process), 4)
 
         return out_str
 
+
 class ConfigError(Exception):
     def __init__(self, message):
         super(ConfigError, self).__init__(message)
 
     def __str__(self):
-        out_str = "ConfigError:\n\tmessage = {}".format(self.message)
+        out_str = 'ConfigError:\n\tmessage = {}'.format(self.message)
         return out_str
 
 # vim: set et ts=4 sw=4: