- Issue #7567: Don't call `setupterm' twice.
This commit is contained in:
parent
3e67c5c52e
commit
6e86bf72ac
|
@ -78,6 +78,8 @@ Extension Modules
|
||||||
then that exception wasn't properly propagated on machines where
|
then that exception wasn't properly propagated on machines where
|
||||||
char is unsigned.
|
char is unsigned.
|
||||||
|
|
||||||
|
- Issue #7567: Don't call `setupterm' twice.
|
||||||
|
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
@ -2047,7 +2047,7 @@ PyCurses_setupterm(PyObject* self, PyObject *args, PyObject* keywds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setupterm(termstr,fd,&err) == ERR) {
|
if (!initialised_setupterm && setupterm(termstr,fd,&err) == ERR) {
|
||||||
char* s = "setupterm: unknown error";
|
char* s = "setupterm: unknown error";
|
||||||
|
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
|
|
Loading…
Reference in New Issue