Fix few cython-lints non-Python constructs, reported by cython-lint
tool:
- libcgroup.pyx:222:26: E711 comparison to None should be 'if cond is None:'
- libcgroup.pyx:380:82: E703 statement ends with a semicolon
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
raise RuntimeError("Failed to get controller {}".format(
ctrl_name))
- if setting_value == None:
+ if setting_value is None:
ret = cgroup.cgroup_add_value_string(cgcp,
c_str(setting_name), NULL)
else:
mount_points = []
ret = cgroup.cgroup_list_mount_points(version, &a)
if ret is not 0:
- raise RuntimeError("cgroup_list_mount_points failed: {}".format(ret));
+ raise RuntimeError("cgroup_list_mount_points failed: {}".format(ret))
i = 0
while a[i]:
cgroup.cgroup_set_default_logger(log_level)
def __dealloc__(self):
- cgroup.cgroup_free(&self._cgp);
+ cgroup.cgroup_free(&self._cgp)
# vim: set et ts=4 sw=4: