[Python-checkins] r62301 - python/branches/py3k/Modules/posixmodule.c

alexandre.vassalotti python-checkins at python.org
Sat Apr 12 23:40:56 CEST 2008


Author: alexandre.vassalotti
Date: Sat Apr 12 23:40:56 2008
New Revision: 62301

Log:
Removed unused variable.


Modified:
   python/branches/py3k/Modules/posixmodule.c

Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c	(original)
+++ python/branches/py3k/Modules/posixmodule.c	Sat Apr 12 23:40:56 2008
@@ -5539,7 +5539,6 @@
         size_t hi = tablesize;
         int cmp;
         const char *confname;
-        Py_ssize_t namelen;
         if (!PyUnicode_Check(arg)) {
             PyErr_SetString(PyExc_TypeError,
                             "configuration names must be strings or integers");
@@ -5548,7 +5547,6 @@
         confname = PyUnicode_AsString(arg);
         if (confname == NULL)
             return 0;
-        namelen = strlen(confname);
         while (lo < hi) {
             mid = (lo + hi) / 2;
             cmp = strcmp(confname, table[mid].name);


More information about the Python-checkins mailing list