summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-01-05 06:40:39 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-01-05 06:40:39 (GMT)
commit0f3a71dab1c17c0667ddf6992c599afe1ed68223 (patch)
tree00ce352236ccc891e1f9b91c47c9f7c9097c3464 /Python/traceback.c
parente2e6b54a4c147ad49e2e2c1c152b5847ba99712e (diff)
downloadcpython-0f3a71dab1c17c0667ddf6992c599afe1ed68223.zip
cpython-0f3a71dab1c17c0667ddf6992c599afe1ed68223.tar.gz
cpython-0f3a71dab1c17c0667ddf6992c599afe1ed68223.tar.bz2
Issue24733 - Remove unreachable code in traceback.c
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index adfd66c..fd5309a 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -170,10 +170,6 @@ _Py_DisplaySourceLine(PyObject *f, const char *filename, int lineno, int indent)
if (xfp == NULL)
return err;
- if (err != 0) {
- fclose(xfp);
- return err;
- }
for (i = 0; i < lineno; i++) {
char* pLastChar = &linebuf[sizeof(linebuf)-2];