summaryrefslogtreecommitdiffstats
path: root/Parser/pegen
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-05-12 09:42:04 (GMT)
committerGitHub <noreply@github.com>2020-05-12 09:42:04 (GMT)
commit74ea6b5a7501fb393cd567fb21998d0bfeeb267c (patch)
tree6f82cb1ae91f9cc21e0181f7284039b7d58d0309 /Parser/pegen
parentf3a5b7ada0c951f317dbd307de4b410e58d3e1b3 (diff)
downloadcpython-74ea6b5a7501fb393cd567fb21998d0bfeeb267c.zip
cpython-74ea6b5a7501fb393cd567fb21998d0bfeeb267c.tar.gz
cpython-74ea6b5a7501fb393cd567fb21998d0bfeeb267c.tar.bz2
bpo-40593: Improve syntax errors for invalid characters in source code. (GH-20033)
Diffstat (limited to 'Parser/pegen')
-rw-r--r--Parser/pegen/pegen.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Parser/pegen/pegen.c b/Parser/pegen/pegen.c
index c80f086..5f8c862 100644
--- a/Parser/pegen/pegen.c
+++ b/Parser/pegen/pegen.c
@@ -337,9 +337,6 @@ tokenizer_error(Parser *p)
case E_TOKEN:
msg = "invalid token";
break;
- case E_IDENTIFIER:
- msg = "invalid character in identifier";
- break;
case E_EOFS:
RAISE_SYNTAX_ERROR("EOF while scanning triple-quoted string literal");
return -1;