summaryrefslogtreecommitdiffstats
path: root/dmidecodemodule.c
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-07-24 12:02:12 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-07-24 12:02:12 +0000
commitc0c4e2446ffca88aed27726fd28f99470fb85d40 (patch)
treeebfc2270976db61f66f960caae96166bb0b50bbd /dmidecodemodule.c
parent4289505932068a0c071c7c9fb4655678394cb469 (diff)
downloadpython-dmidecode-c0c4e2446ffca88aed27726fd28f99470fb85d40.tar.gz
python-dmidecode-c0c4e2446ffca88aed27726fd28f99470fb85d40.tar.xz
python-dmidecode-c0c4e2446ffca88aed27726fd28f99470fb85d40.zip
Some cleaning, crash in interactive mode on dmidecode.bios() still not fixed.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@13 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'dmidecodemodule.c')
-rw-r--r--dmidecodemodule.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dmidecodemodule.c b/dmidecodemodule.c
index 10ee9fc..5b6f63a 100644
--- a/dmidecodemodule.c
+++ b/dmidecodemodule.c
@@ -4,9 +4,9 @@
static PyObject* dmidecode_get(PyObject *self, char* section) {
//mtrace();
- Py_SetProgramName("dmidecode");
- /*
+ /* This is `embedding API', not applicable to this dmidecode module which is `Extending'
+ Py_SetProgramName("dmidecode");
int argc = 3;
char *argv[4];
argv[0] = "dmidecode";
@@ -35,7 +35,6 @@ static PyObject* dmidecode_get(PyObject *self, char* section) {
if(opt.type==NULL) return NULL;
PyObject* pydata = PyDict_New();
- Py_INCREF(pydata);
/* First try EFI (ia64, Intel-based Mac) */
char efiAddress[32];