From: W. Trevor King Date: Fri, 19 Oct 2012 04:10:20 +0000 (-0400) Subject: python: README: cleanup reStructuredText syntax. X-Git-Tag: v17~10^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=028fc127b61b2d64c2c1ec20532f7da62df0a86e;p=thirdparty%2Fkmod.git python: README: cleanup reStructuredText syntax. --- diff --git a/libkmod/python/README b/libkmod/python/README index 53a238ae..1e72c155 100644 --- a/libkmod/python/README +++ b/libkmod/python/README @@ -20,28 +20,21 @@ https://github.com/agrover/python-kmod Example (python invoked as root) -------------------------------- ->>>import kmod - ->>>km = kmod.Kmod() - ->>>km.loaded_modules() - -[('nfs', 407706), - ('nfs_acl', 12741) - -... - - ('virtio_blk', 17549)] - ->>>km.modprobe("btrfs") - ->>>km.rmmod("btrfs") +:: + + >>> import kmod + >>> km = kmod.Kmod() + >>> km.loaded_modules() + [('nfs', 407706), + ('nfs_acl', 12741) + ... + ('virtio_blk', 17549)] + >>> km.modprobe("btrfs") + >>> km.rmmod("btrfs") Building -------- -Ensure Python and kmod headers are installed and run: - -python setup.py build - +Ensure Python and kmod headers are installed and run:: + $ python setup.py build