#define E_DECODE 22 /* Error in decoding into Unicode */
#define E_EOFS 23 /* EOF in triple-quoted string */
#define E_EOLS 24 /* EOL in single-quoted string */
+#define E_LINECONT 25 /* Unexpected characters after a line continuation */
#ifdef __cplusplus
}
Core and builtins
-----------------
+- Patch #802188: Report characters after line continuation character
+ ('\') with a specific error message.
+
- Bug #723201: Raise a TypeError for passing bad objects to 'L' format.
- Bug #1124295: the __name__ attribute of file objects was
if (c == '\\') {
c = tok_nextc(tok);
if (c != '\n') {
- tok->done = E_TOKEN;
+ tok->done = E_LINECONT;
tok->cur = tok->inp;
return ERRORTOKEN;
}
msg = "unknown decode error";
break;
}
+ case E_LINECONT:
+ msg = "unexpected character after line continuation character";
+ break;
default:
fprintf(stderr, "error=%d\n", err->error);
msg = "unknown parsing error";