From f0131945a35a6740e9ce18a70ce160ae8ddfc8f5 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Mon, 14 Feb 2022 07:54:19 -0700 Subject: [PATCH] Introduce vim modeline for python sources 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 Signed-off-by: Tom Hromatka --- src/python/cgroup.pxd | 2 ++ src/python/libcgroup.pyx | 2 ++ src/python/setup.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/python/cgroup.pxd b/src/python/cgroup.pxd index 29beca53..dafd2068 100644 --- a/src/python/cgroup.pxd +++ b/src/python/cgroup.pxd @@ -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: diff --git a/src/python/libcgroup.pyx b/src/python/libcgroup.pyx index 558fbf5f..29ac16ba 100644 --- a/src/python/libcgroup.pyx +++ b/src/python/libcgroup.pyx @@ -292,3 +292,5 @@ cdef class Cgroup: def __dealloc__(self): cgroup.cgroup_free(&self._cgp); + +# vim: set et ts=4 sw=4: diff --git a/src/python/setup.py b/src/python/setup.py index ca160254..c9805f27 100755 --- a/src/python/setup.py +++ b/src/python/setup.py @@ -43,3 +43,5 @@ setup( extra_objects=["../.libs/libcgroup.a"]), ]) ) + +# vim: set et ts=4 sw=4: -- 2.47.2