python: add docstring to rmmod
authorOz <nahumoz@gmail.com>
Sun, 16 Dec 2012 22:23:31 +0000 (23:23 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 25 Mar 2014 03:34:16 +0000 (00:34 -0300)
libkmod/python/kmod/kmod.pyx

index 669e468..556b0f2 100644 (file)
@@ -107,5 +107,9 @@ cdef class Kmod (object):
             mod.insert(*args, **kwargs)
 
     def rmmod(self, module_name, *args, **kwargs):
+       """
+       remove module from current tree
+       e.g. km.rmmod("thinkpad_acpi")
+       """
        mod = self.module_from_name(name=module_name)
        mod.remove(*args, **kwargs)