Skip to content

Commit 86ace25

Browse files
committed
added back 'in enclosing scope' for free var
1 parent 658cab1 commit 86ace25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/ceval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ static int get_exception_handler(PyCodeObject *, int, int*, int*, int*);
103103
#define UNBOUNDLOCAL_ERROR_MSG \
104104
"accessed local variable '%.200s' where it is not associated with a value"
105105
#define UNBOUNDFREE_ERROR_MSG \
106-
"accessed free variable '%.200s' where it is not associated with a value"
106+
"accessed free variable '%.200s' where it is not associated with a" \
107+
" value in enclosing scope"
107108

108109
/* Dynamic execution profile */
109110
#ifdef DYNAMIC_EXECUTION_PROFILE

0 commit comments

Comments
 (0)