diff options
author | W. Trevor King <wking@tremily.us> | 2012-10-19 00:10:20 -0400 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-03-20 07:22:52 -0300 |
commit | 802a673f4a33f9fe6fdee2f1cbcd6cfe05856f30 (patch) | |
tree | 7622a198a9c8b2fb5bca8a29ebf24c11d0377f6b | |
parent | 51baa3c06ffb3d72b462b48545bfd0bd8592a97a (diff) | |
download | kmod-802a673f4a33f9fe6fdee2f1cbcd6cfe05856f30.tar.gz |
python: README: cleanup reStructuredText syntax.
-rw-r--r-- | libkmod/python/README | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/libkmod/python/README b/libkmod/python/README index 53a238a..1e72c15 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 |