mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Merged the int/long unification branch, by very crude means (sorry Thomas!).
I banged on the code (beyond what's in that branch) to make fewer tests fail; the only tests that fail now are: test_descr -- can't pickle ints?! test_pickletools -- ??? test_socket -- See python.org/sf/1619659 test_sqlite -- ??? I'll deal with those later.
This commit is contained in:
parent
5b787e8bc2
commit
ddefaf31b3
46 changed files with 798 additions and 404 deletions
|
|
@ -1314,6 +1314,9 @@ mbstreamreader_read(MultibyteStreamReaderObject *self, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (size == -1 && PyErr_Occurred())
|
||||
return NULL;
|
||||
|
||||
return mbstreamreader_iread(self, "read", size);
|
||||
}
|
||||
|
||||
|
|
@ -1335,6 +1338,9 @@ mbstreamreader_readline(MultibyteStreamReaderObject *self, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (size == -1 && PyErr_Occurred())
|
||||
return NULL;
|
||||
|
||||
return mbstreamreader_iread(self, "readline", size);
|
||||
}
|
||||
|
||||
|
|
@ -1356,6 +1362,9 @@ mbstreamreader_readlines(MultibyteStreamReaderObject *self, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (sizehint == -1 && PyErr_Occurred())
|
||||
return NULL;
|
||||
|
||||
r = mbstreamreader_iread(self, "read", sizehint);
|
||||
if (r == NULL)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue