mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
Fix SF Bug 564931: compile() traceback must include filename.
This commit is contained in:
parent
4254cbd29c
commit
6b17abf6c0
5 changed files with 55 additions and 4 deletions
|
|
@ -32,6 +32,10 @@ extern DL_IMPORT(node *) PyParser_ParseFileFlags(FILE *, char *, grammar *,
|
|||
int, char *, char *,
|
||||
perrdetail *, int);
|
||||
|
||||
extern DL_IMPORT(node *) PyParser_ParseStringFlagsFilename(char *,
|
||||
char *,
|
||||
grammar *, int,
|
||||
perrdetail *, int);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -45,6 +45,10 @@ DL_IMPORT(int) PyRun_InteractiveLoopFlags(FILE *, char *, PyCompilerFlags *);
|
|||
DL_IMPORT(struct _node *) PyParser_SimpleParseString(char *, int);
|
||||
DL_IMPORT(struct _node *) PyParser_SimpleParseFile(FILE *, char *, int);
|
||||
DL_IMPORT(struct _node *) PyParser_SimpleParseStringFlags(char *, int, int);
|
||||
DL_IMPORT(struct _node *) PyParser_SimpleParseStringFlagsFilename(char *,
|
||||
char *,
|
||||
int,
|
||||
int);
|
||||
DL_IMPORT(struct _node *) PyParser_SimpleParseFileFlags(FILE *, char *,
|
||||
int, int);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue