From: Jack Jansen Date: Sun, 24 Feb 2002 23:07:58 +0000 (+0000) Subject: backport of 1.4: X-Git-Tag: v2.2.1c1~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6468f01197064482e7da0cc6b088deb1d37b965;p=thirdparty%2FPython%2Fcpython.git backport of 1.4: Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre Parenteau. --- diff --git a/Mac/Python/pyGUSISIOUX.cp b/Mac/Python/pyGUSISIOUX.cp index 40670d822788..8a5161863f59 100644 --- a/Mac/Python/pyGUSISIOUX.cp +++ b/Mac/Python/pyGUSISIOUX.cp @@ -79,10 +79,12 @@ bool GUSISIOUXSocket::initialized = false; GUSISIOUXSocket::GUSISIOUXSocket(int fd) : fFd(fd) { - if (!PyMac_GetDelayConsoleFlag() && !hasCustomConsole() && !initialized) - Initialize(); - /* Tell the upper layers there's no unseen output */ - PyMac_OutputSeen(); + if (!hasCustomConsole()) { + if (!PyMac_GetDelayConsoleFlag() && !initialized) + Initialize(); + /* Tell the upper layers there's no unseen output */ + PyMac_OutputSeen(); + } } void