From: Andrew M. Kuchling Date: Mon, 22 Feb 2010 16:35:18 +0000 (+0000) Subject: Merged revisions 78318 via svnmerge from X-Git-Tag: v2.6.5rc1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63553d1829ddd5987706a6f6079a9e2093f23b7e;p=python Merged revisions 78318 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78318 | andrew.kuchling | 2010-02-22 11:26:47 -0500 (Mon, 22 Feb 2010) | 1 line #7597: curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen ........ --- diff --git a/Misc/NEWS b/Misc/NEWS index a9069c0874..589590e266 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -66,6 +66,9 @@ Core and Builtins Library ------- +- Issue #7597: curses.use_env() can now be called before initscr(). + Noted by Kan-Ru Chen. + - Issue #7970: email.Generator.flatten now correctly flattens message/rfc822 messages parsed by email.Parser.HeaderParser. diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 922f351e42..4a77b0552a 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2586,8 +2586,6 @@ PyCurses_Use_Env(PyObject *self, PyObject *args) { int flag; - PyCursesInitialised - switch(PyTuple_Size(args)) { case 1: if (!PyArg_ParseTuple(args,"i;True(1), False(0)",&flag))