Mercurial > cpython-lru_cache-weakref
diff Modules/cStringIO.c @ 37875:a4c70f3968be
Merge part of the trunk changes into the p3yk branch. This merges from 43030
(branch-creation time) up to 43067. 43068 and 43069 contain a little
swapping action between re.py and sre.py, and this mightily confuses svn
merge, so later changes are going in separately.
This merge should break no additional tests.
The last-merged revision is going in a 'last_merge' property on '.' (the
branch directory.) Arbitrarily chosen, really; if there's a BCP for this, I
couldn't find it, but we can easily change it afterwards ;)
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Fri, 21 Apr 2006 09:43:23 +0000 |
| parents | e9a7a2784e17 |
| children | 5e1b6f553763 |
line wrap: on
line diff
--- a/Modules/cStringIO.c Fri Apr 21 09:17:15 2006 +0000 +++ b/Modules/cStringIO.c Fri Apr 21 09:43:23 2006 +0000 @@ -144,7 +144,8 @@ static PyObject * IO_isatty(IOobject *self, PyObject *unused) { - Py_INCREF(Py_False); + if (!IO__opencheck(self)) return NULL; + Py_INCREF(Py_False); return Py_False; }
