Mercurial > cpython-lru_cache-weakref
comparison Python/traceback.c @ 2811:07fc4fefb683 legacy-trunk
ignore control-l (parallelling change to tokenizer.c)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 07 Jul 1995 22:45:41 +0000 |
| parents | d0d0a69b5ca3 |
| children | 0261bf5b3819 |
comparison
equal
deleted
inserted
replaced
| 2810:fc2190ec1bea | 2811:07fc4fefb683 |
|---|---|
| 210 if (fgets(linebuf, sizeof linebuf, xfp) == NULL) | 210 if (fgets(linebuf, sizeof linebuf, xfp) == NULL) |
| 211 break; | 211 break; |
| 212 } | 212 } |
| 213 if (i == lineno) { | 213 if (i == lineno) { |
| 214 char *p = linebuf; | 214 char *p = linebuf; |
| 215 while (*p == ' ' || *p == '\t') | 215 while (*p == ' ' || *p == '\t' || *p == '\014') |
| 216 p++; | 216 p++; |
| 217 writestring(" ", f); | 217 writestring(" ", f); |
| 218 writestring(p, f); | 218 writestring(p, f); |
| 219 if (strchr(p, '\n') == NULL) | 219 if (strchr(p, '\n') == NULL) |
| 220 writestring("\n", f); | 220 writestring("\n", f); |
