mirror of
https://github.com/python/cpython
synced 2026-09-29 10:35:30 +03:00
- Issue #7567: PyCurses_setupterm: Don't call `setupterm' twice.
This commit is contained in:
parent
ce126edfd0
commit
635edd1990
2 changed files with 3 additions and 1 deletions
|
|
@ -1673,6 +1673,8 @@ Extension Modules
|
|||
- Issue #7347: winreg: Add CreateKeyEx and DeleteKeyEx, as well as fix a
|
||||
bug in the return value of QueryReflectionKey.
|
||||
|
||||
- Issue #7567: PyCurses_setupterm: Don't call `setupterm' twice.
|
||||
|
||||
Build
|
||||
-----
|
||||
|
||||
|
|
|
|||
|
|
@ -2126,7 +2126,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";
|
||||
|
||||
if (err == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue