mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Removed debugging prints.
This commit is contained in:
parent
c968092d5c
commit
71f00fb6df
1 changed files with 0 additions and 4 deletions
|
@ -3416,11 +3416,8 @@ conv_confname(arg, valuep, table, tablesize)
|
||||||
int hi = tablesize;
|
int hi = tablesize;
|
||||||
int cmp, mid;
|
int cmp, mid;
|
||||||
char *confname = PyString_AS_STRING(arg);
|
char *confname = PyString_AS_STRING(arg);
|
||||||
printf("table: %d entries\n", tablesize);
|
|
||||||
while (lo < hi) {
|
while (lo < hi) {
|
||||||
mid = (lo + hi) / 2;
|
mid = (lo + hi) / 2;
|
||||||
printf("%d confname='%s'; other='%s';\n",
|
|
||||||
mid, confname, table[mid].name);
|
|
||||||
cmp = strcmp(confname, table[mid].name);
|
cmp = strcmp(confname, table[mid].name);
|
||||||
if (cmp < 0)
|
if (cmp < 0)
|
||||||
hi = mid;
|
hi = mid;
|
||||||
|
@ -3620,7 +3617,6 @@ posix_confstr(self, args)
|
||||||
if (PyArg_ParseTuple(args, "O&:confstr", conv_confstr_confname, &name)) {
|
if (PyArg_ParseTuple(args, "O&:confstr", conv_confstr_confname, &name)) {
|
||||||
int len = confstr(name, buffer, sizeof(buffer));
|
int len = confstr(name, buffer, sizeof(buffer));
|
||||||
|
|
||||||
printf("confstr(%d) --> %d, '%s'\n", name, len, buffer);
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
if (errno != 0)
|
if (errno != 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue