diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-02-24 23:07:58 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-02-24 23:07:58 (GMT) |
commit | f6468f01197064482e7da0cc6b088deb1d37b965 (patch) | |
tree | c489733d4b6412bed8d6ca9d3900bbd64841bda6 /Mac | |
parent | 11c8a87da0704066189e57a90e3d377fd9bdf7d6 (diff) | |
download | cpython-f6468f01197064482e7da0cc6b088deb1d37b965.zip cpython-f6468f01197064482e7da0cc6b088deb1d37b965.tar.gz cpython-f6468f01197064482e7da0cc6b088deb1d37b965.tar.bz2 |
backport of 1.4:
Don't call PyMac_OutputSeen if we have a custom console. Fix by
Alexandre Parenteau.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Python/pyGUSISIOUX.cp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Mac/Python/pyGUSISIOUX.cp b/Mac/Python/pyGUSISIOUX.cp index 40670d8..8a51618 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 |