[issue2560] removal of stale code from myreadline.c

Daniel Stutzbach report at bugs.python.org
Mon Mar 30 03:07:23 CEST 2009


Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:

This patch looks good to me and applies cleanly to the trunk.  Here's a
synopsis of the code (before the patch) in question:

static int
my_fgets(char *buf, int len, FILE *fp)
{
    for(;;) {
          /* a bunch of code that does not contain break or continue */
          return -2;
    }
}

The patch removes the extraneous for loop and un-indents the inside of
the loop.  However, the patch changes that section of code to use
4-space indents while the rest of the file uses 8-space indents.

----------
nosy: +stutzbach
versions: +Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2560>
_______________________________________


More information about the Python-bugs-list mailing list