summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 22:48:41 +0000
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 22:48:41 +0000
commitb64d61369aeda5f0af40a0daf3af648c433492a3 (patch)
treec0ac3cf6cd3464737c5c5e943f19c07f0b7846d0 /Python/strdup.c
parent5cac46dd413766411dc12758d53b6a7e6b691171 (diff)
downloadcpython-git-b64d61369aeda5f0af40a0daf3af648c433492a3.tar.gz
#2560: remove an unnecessary 'for' loop from my_fgets() in Parser/myreadline.c.
Noted by Joseph Armbruster; patch by Jessica McKellar. The original code was 'for (;;) {...}', where ... ended with a 'return -2' statement and did not contain a 'break' or 'continue' statement. Therefore, the body of the loop is always executed once. Once upon a time there was a 'continue' in the loop, but it was removed in rev36346, committed by mwh on Wed Jul 7 17:44:12 2004.
Diffstat (limited to 'Python/strdup.c')
0 files changed, 0 insertions, 0 deletions