summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-08-05 16:35:53 (GMT)
committerMatthias Klose <doko@ubuntu.com>2010-08-05 16:35:53 (GMT)
commit9b83dbe9056face0a66dbff537aa866ea6f57f35 (patch)
tree1f11024078435b269eb21fa77e70c66491ef2ba0 /Modules
parent498323eec7ad960f949a0a6feb03f6f819bd7051 (diff)
downloadcpython-9b83dbe9056face0a66dbff537aa866ea6f57f35.zip
cpython-9b83dbe9056face0a66dbff537aa866ea6f57f35.tar.gz
cpython-9b83dbe9056face0a66dbff537aa866ea6f57f35.tar.bz2
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. ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index a3146f8..fb833bc 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2039,7 +2039,7 @@ PyCursesWindow_NoOutRefresh(PyCursesWindowObject *self, PyObject *args)
}
}
- if (setupterm(termstr,fd,&err) == ERR) {
+ if (!initialised_setupterm && setupterm(termstr,fd,&err) == ERR) {
char* s = "setupterm: unknown error";
if (err == 0) {