From e32987a2438bd27fdacf0d7639a5bd54167da58e Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 20 Feb 2014 09:56:05 +0000 Subject: [PATCH] py-smbus: fix module level docs When you do pydoc smbus, you just get the high level description. There is no automatic display of the classes (like SMBus). This is due to the name not being specified quite right in the type. Contributed by Mike Frysinger. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6232 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + py-smbus/smbusmodule.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 1a5c931..dca5934 100644 --- a/CHANGES +++ b/CHANGES @@ -17,6 +17,7 @@ SVN HEAD i2cdetect: Clarify the SMBus commands used for probing by default i2c-dev.h: Minimize differences with kernel flavor i2c-stub-from-dump: Be more tolerant on input dump format + py-smbus: Fix module level docs 3.1.0 (2011-12-04) decode-dimms: Decode module configuration type of DDR SDRAM diff --git a/py-smbus/smbusmodule.c b/py-smbus/smbusmodule.c index f3a5318..86e8e13 100644 --- a/py-smbus/smbusmodule.c +++ b/py-smbus/smbusmodule.c @@ -637,7 +637,7 @@ static PyGetSetDef SMBus_getset[] = { static PyTypeObject SMBus_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ - "SMBus", /* tp_name */ + "smbus.SMBus", /* tp_name */ sizeof(SMBus), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SMBus_dealloc, /* tp_dealloc */