File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ int Py_OptimizeFlag = 0;
6060#define GLOBAL_AFTER_USE \
6161"name '%.400s' is used prior to global declaration"
6262
63- #define LOCAL_GLOBAL \
63+ #define PARAM_GLOBAL \
6464"name '%.400s' is a function parameter and declared global"
6565
6666#define LATE_FUTURE \
@@ -4843,7 +4843,7 @@ symtable_load_symbols(struct compiling *c)
48434843 c -> c_argcount -- ;
48444844 else if (flags & DEF_GLOBAL ) {
48454845 if (flags & DEF_PARAM ) {
4846- PyErr_Format (PyExc_SyntaxError , LOCAL_GLOBAL ,
4846+ PyErr_Format (PyExc_SyntaxError , PARAM_GLOBAL ,
48474847 PyString_AS_STRING (name ));
48484848 symtable_error (st , 0 );
48494849 goto fail ;
@@ -5592,8 +5592,7 @@ symtable_global(struct symtable *st, node *n)
55925592 if (flags && flags != DEF_GLOBAL ) {
55935593 char buf [500 ];
55945594 if (flags & DEF_PARAM ) {
5595- PyErr_Format (PyExc_SyntaxError ,
5596- "name '%.400s' is local and global" ,
5595+ PyErr_Format (PyExc_SyntaxError , PARAM_GLOBAL ,
55975596 name );
55985597 symtable_error (st , 0 );
55995598 return ;
You can’t perform that action at this time.
0 commit comments