mirror of
https://github.com/python/cpython.git
synced 2026-05-18 02:15:28 -04:00
#2816: clarify error messages for EOF while scanning strings.
This commit is contained in:
+2
-2
@@ -1500,10 +1500,10 @@ err_input(perrdetail *err)
|
||||
msg = "invalid token";
|
||||
break;
|
||||
case E_EOFS:
|
||||
msg = "EOF while scanning triple-quoted string";
|
||||
msg = "EOF while scanning triple-quoted string literal";
|
||||
break;
|
||||
case E_EOLS:
|
||||
msg = "EOL while scanning single-quoted string";
|
||||
msg = "EOL while scanning string literal";
|
||||
break;
|
||||
case E_INTR:
|
||||
if (!PyErr_Occurred())
|
||||
|
||||
Reference in New Issue
Block a user