Skip to content

Commit b56ccbd

Browse files
author
martin.v.loewis
committed
Reconst parameters that lost their const in the AST merge.
git-svn-id: http://svn.python.org/projects/python/trunk@42731 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent d18c666 commit b56ccbd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Include/pythonrun.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ PyAPI_FUNC(int) Py_IsInitialized(void);
3131
PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void);
3232
PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);
3333

34-
PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, char *, PyCompilerFlags *);
35-
PyAPI_FUNC(int) PyRun_AnyFileExFlags(FILE *, char *, int, PyCompilerFlags *);
34+
PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *);
35+
PyAPI_FUNC(int) PyRun_AnyFileExFlags(FILE *, const char *, int, PyCompilerFlags *);
3636
PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *);
3737
PyAPI_FUNC(int) PyRun_SimpleFileExFlags(FILE *, const char *, int, PyCompilerFlags *);
3838
PyAPI_FUNC(int) PyRun_InteractiveOneFlags(FILE *, const char *, PyCompilerFlags *);

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ initsite(void)
638638
/* Parse input from a file and execute it */
639639

640640
int
641-
PyRun_AnyFileExFlags(FILE *fp, char *filename, int closeit,
641+
PyRun_AnyFileExFlags(FILE *fp, const char *filename, int closeit,
642642
PyCompilerFlags *flags)
643643
{
644644
if (filename == NULL)

0 commit comments

Comments
 (0)