classification
Title: curses.wrapper : unnessesary code
Type: Stage:
Components: Library (Lib) Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, july
Priority: normal Keywords: patch

Created on 2010-05-31 17:32 by july, last changed 2010-08-02 19:44 by georg.brandl. This issue is now closed.

Files
File name Uploaded Description Edit
curses-wrapper-cleanup.patch july, 2010-05-31 17:32 apply to trunk
Messages (2)
msg106798 - (view) Author: July Tikhonov (july) * Date: 2010-05-31 17:32
wrapper() code in Lib/curses/wrapper.py
has an unnesesary line:

    res = None

This variable is not used anywhere else in wrapper().
Inspecting the history of trunk, we can see that it was used used as a result of applying func(), but later was replaced by another construction.

Patch added.
msg112527 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-02 19:44
Fixed in r83555.
History
Date User Action Args
2010-08-02 19:44:57georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112527

resolution: fixed
2010-05-31 17:32:13julycreate