summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2013-05-22 07:07:58 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2013-05-22 07:07:58 +0000
commit2181e881e4743a784dae95f85fbde31d4ba227ea (patch)
tree7f6b05b8082d70afc1ac8a2f3df6d4b6ae6f10d5
parent4b6a8b4b5e592d7b9ed836ddca57a03a7884279d (diff)
downloadi2c-tools-2181e881e4743a784dae95f85fbde31d4ba227ea.tar.gz
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/trunk@6171 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r--CHANGES1
-rw-r--r--py-smbus/smbusmodule.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 49048f3..af5c633 100644
--- a/CHANGES
+++ b/CHANGES
@@ -46,6 +46,7 @@ SVN HEAD
Properly propagate real error codes on read errors
Use I2C_SMBUS_BLOCK_MAX instead of hard-coding 32
lib/smbus.c: Add missing include which was causing a build error
+ 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 bedd8bf..d360a36 100644
--- a/py-smbus/smbusmodule.c
+++ b/py-smbus/smbusmodule.c
@@ -639,7 +639,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 */