summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-08-15 07:32:56 +0000
committerMartin v. Löwis <martin@v.loewis.de>2007-08-15 07:32:56 +0000
commitfeea1e9423e7a95b882dde425f82feee0736654f (patch)
tree441251c9bb41eb54827ca7efbb712cda729c8570 /Python/pythonrun.c
parenta80458b466665b3f7fcf54e212cb1775f306edd9 (diff)
downloadcpython-feea1e9423e7a95b882dde425f82feee0736654f.tar.gz
Implement PEP 3131. Add isidentifier to str.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index cc0926a004..32bc6f714f 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1530,6 +1530,10 @@ err_input(perrdetail *err)
case E_LINECONT:
msg = "unexpected character after line continuation character";
break;
+
+ case E_IDENTIFIER:
+ msg = "invalid character in identifier";
+ break;
default:
fprintf(stderr, "error=%d\n", err->error);
msg = "unknown parsing error";