diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2021-04-16 16:38:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-16 16:38:55 +0100 |
| commit | 3b82cae774638ecf2baaee8fe2cac8fedafb2ca7 (patch) | |
| tree | cd85a508c6cef850cf0b9a8ada7addc6945ca801 /Objects/exceptions.c | |
| parent | b136b1aac4b7d07e3120ee59e41c02bc86032162 (diff) | |
| download | cpython-git-3b82cae774638ecf2baaee8fe2cac8fedafb2ca7.tar.gz | |
bpo-38530: Properly extend UnboundLocalError from NameError (GH-25444)
Diffstat (limited to 'Objects/exceptions.c')
| -rw-r--r-- | Objects/exceptions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 9916ce8854..4a2fc27a87 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1393,7 +1393,8 @@ ComplexExtendsException(PyExc_Exception, NameError, /* * UnboundLocalError extends NameError */ -SimpleExtendsException(PyExc_NameError, UnboundLocalError, + +MiddlingExtendsException(PyExc_NameError, UnboundLocalError, NameError, "Local name referenced but not bound to a value."); /* |
