Commits

Anonymous committed 67652a7

Merged revisions 83306 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

........
r83306 | matthias.klose | 2010-07-30 23:27:18 +0200 (Fr, 30 Jul 2010) | 2 lines

- Issue #7567: Don't call `setupterm' twice.
........

Comments (0)

Files changed (2)

 - Issue #5798: Handle select.poll flag oddities properly on OS X.
   This fixes test_asynchat and test_smtplib failures on OS X.
 
+Extension Modules
+-----------------
+
+- Issue #7567: Don't call `setupterm' twice.
+
 
 What's New in Python 2.6.6 rc 1?
 ================================

Modules/_cursesmodule.c

                 }
             }
 
-            if (setupterm(termstr,fd,&err) == ERR) {
+            if (!initialised_setupterm && setupterm(termstr,fd,&err) == ERR) {
                 char* s = "setupterm: unknown error";
 
                 if (err == 0) {