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>
""" 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
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
return True
+
cdef class Cgroup:
""" Python object representing a libcgroup cgroup """
cdef cgroup.cgroup * _cgp