Skip to content

Commit d0c3650

Browse files
committed
update per review discussion. Changed UNBOUNDFREE_ERROR_MSG as well
1 parent 7826eaf commit d0c3650

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Python/ceval.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ static int get_exception_handler(PyCodeObject *, int, int*, int*, int*);
101101
#define NAME_ERROR_MSG \
102102
"name '%.200s' is not defined"
103103
#define UNBOUNDLOCAL_ERROR_MSG \
104-
"local variable '%.200s' referenced before assignment" \
105-
" or after deletion"
104+
"accessed local variable '%.200s' where it is not associated with a value"
106105
#define UNBOUNDFREE_ERROR_MSG \
107-
"free variable '%.200s' referenced before assignment" \
108-
" in enclosing scope"
106+
"accessed free variable '%.200s' where it is not associated with a value"
109107

110108
/* Dynamic execution profile */
111109
#ifdef DYNAMIC_EXECUTION_PROFILE

0 commit comments

Comments
 (0)