]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
python: libcgroup.pyx - fix lines, spaces lint warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 10 Jul 2023 04:44:57 +0000 (10:14 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 12 Jul 2023 18:57:31 +0000 (12:57 -0600)
Fix following spaces, lines warnings reported by Cython-lint:
- libcgroup.pyx:14:13: E222 multiple spaces after operator
- libcgroup.pyx:50:1: E302 expected 2 blank lines, found 1
- libcgroup.pyx:53:1: E302 expected 2 blank lines, found 1
- libcgroup.pyx:57:1: E302 expected 2 blank lines, found 1
- libcgroup.pyx:85:1: E305 expected 2 blank lines after class or function definition, found 1

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/python/libcgroup.pyx

index 4323b73ff459dd904a528afcce9c9ae3e2e64adb..090118ec384fab1b47c890ac6bc4631dd9a7108f 100644 (file)
@@ -11,7 +11,7 @@
 """ Python bindings for the libcgroup library
 """
 
-__author__ =  'Tom Hromatka <tom.hromatka@oracle.com>'
+__author__ = 'Tom Hromatka <tom.hromatka@oracle.com>'
 __date__ = "25 October 2021"
 
 from posix.types cimport pid_t, mode_t
@@ -47,13 +47,16 @@ cdef class LogLevel:
     CGROUP_LOG_INFO = cgroup.CGROUP_LOG_INFO
     CGROUP_LOG_DEBUG = cgroup.CGROUP_LOG_DEBUG
 
+
 def c_str(string):
     return bytes(string, "ascii")
 
+
 def indent(in_str, cnt):
     leading_indent = cnt * ' '
     return ''.join(leading_indent + line for line in in_str.splitlines(True))
 
+
 class Controller:
     def __init__(self, name):
         self.name = name
@@ -82,6 +85,7 @@ class Controller:
 
         return True
 
+
 cdef class Cgroup:
     """ Python object representing a libcgroup cgroup """
     cdef cgroup.cgroup * _cgp