This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Lingering StandardError in logging module
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: anacrolix, python-dev, vinay.sajip
Priority: normal Keywords: patch

Created on 2012-01-25 15:20 by anacrolix, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
logging-uncovered-standarderror.patch anacrolix, 2012-01-25 15:20 review
Messages (5)
msg151948 - (view) Author: Matt Joiner (anacrolix) Date: 2012-01-25 15:20
There's a lingering StandardError referenced in the logging module.

StandardError was removed in Python 3, and execution across this code path generates a NameError:

  File "/home/matt/src/cpython/Lib/logging/__init__.py", line 291, in __init__
    except StandardError: #pragma: no cover
NameError: global name 'StandardError' is not defined

Patch attached.
msg151949 - (view) Author: Matt Joiner (anacrolix) Date: 2012-01-25 16:15
Interesting this also occurs in 3.2 and 2.7, but not 2.6 or 3.1. It's probably not an error in 2.x tho.
msg151952 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2012-01-25 17:37
> Interesting this also occurs in 3.2 and 2.7, but not 2.6 or 3.1

Most likely it happened because a fix was backported and this got missed. I'll take care of it.
msg151957 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-01-25 17:50
New changeset e506848d6381 by Vinay Sajip in branch '3.2':
Closes #13859: Replaced reference to StandardError with reference to Exception. Thanks to Matt Joiner for spotting this and submitting a patch.
http://hg.python.org/cpython/rev/e506848d6381

New changeset fec45282dc28 by Vinay Sajip in branch 'default':
Closes #13859: Merged fix from 3.2 - thanks to Matt Joiner for spotting this and the patch.
http://hg.python.org/cpython/rev/fec45282dc28
msg151990 - (view) Author: Matt Joiner (anacrolix) Date: 2012-01-26 04:10
Cheers, thanks for the fast turn around.
History
Date User Action Args
2022-04-11 14:57:26adminsetgithub: 58067
2012-01-26 04:10:43anacrolixsetmessages: + msg151990
2012-01-25 17:50:25python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg151957

resolution: fixed
stage: patch review -> resolved
2012-01-25 17:37:34vinay.sajipsetassignee: vinay.sajip
messages: + msg151952
2012-01-25 16:15:11anacrolixsetmessages: + msg151949
versions: + Python 2.7, Python 3.2
2012-01-25 15:27:44brian.curtinsetnosy: + vinay.sajip

components: - 2to3 (2.x to 3.x conversion tool)
stage: patch review
2012-01-25 15:20:49anacrolixcreate