summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 19:43:42 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 19:43:42 (GMT)
commit560e8adef71dd10898e0f8a0a9a20599e6bec857 (patch)
treed5005ca2b531e1944d7d1878d1f58b7ef260c433 /Python
parentbba92ca555daeac987386a18ce16df2ea4cdebfe (diff)
downloadcpython-560e8adef71dd10898e0f8a0a9a20599e6bec857.zip
cpython-560e8adef71dd10898e0f8a0a9a20599e6bec857.tar.gz
cpython-560e8adef71dd10898e0f8a0a9a20599e6bec857.tar.bz2
Translate E_INDENT to the clearest error message I can think of.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 87b691a..16aba5c 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -997,6 +997,9 @@ err_input(err)
case E_EOF:
msg = "unexpected EOF while parsing";
break;
+ case E_INDENT:
+ msg = "inconsistent use of tabs and spaces in indentation";
+ break;
default:
fprintf(stderr, "error=%d\n", err->error);
msg = "unknown parsing error";