]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Introduce vim modeline for python sources
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 14 Feb 2022 14:54:19 +0000 (07:54 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 14 Feb 2022 14:54:24 +0000 (07:54 -0700)
Introduce vim modeline to python source files. This sets up the
vim editor to PEP-8 recommend editing style. The vim modeline added:
"# vim: set et ts=4 sw=4:"

'et' converts the tabs to spaces, 'ts' set the tabs indentation/tabstop
to 4 characters and 'sw' sets the shiftwidth to 4 characters.

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

index 29beca53347ef1c22a7756f3d07c77246737cba4..dafd2068bfc3c0583e37c38eaf844838314d20f7 100644 (file)
@@ -63,3 +63,5 @@ cdef extern from "libcgroup.h":
 
     int cgroup_cgxset(const cgroup * const cg, cg_version_t version,
                       bint ignore_unmappable)
+
+# vim: set et ts=4 sw=4:
index 558fbf5f29aa2837338ad5463396a5656b8e5578..29ac16baaa1433a440a4ff3acbda6e59d5005265 100644 (file)
@@ -292,3 +292,5 @@ cdef class Cgroup:
 
     def __dealloc__(self):
         cgroup.cgroup_free(&self._cgp);
+
+# vim: set et ts=4 sw=4:
index ca160254a23cb6cddacd21d5a96a6c5b12286fef..c9805f272816434fdf4a0a50f4557dae85cc5e94 100755 (executable)
@@ -43,3 +43,5 @@ setup(
             extra_objects=["../.libs/libcgroup.a"]),
     ])
 )
+
+# vim: set et ts=4 sw=4: