+ fix bug in PyStreambuf when reading binary data
This commit is contained in:
parent
10bb9fa5cc
commit
051a9fce73
|
@ -562,8 +562,6 @@ std::streambuf::int_type PyStreambuf::underflow()
|
||||||
c = static_cast<std::string>(res)[0];
|
c = static_cast<std::string>(res)[0];
|
||||||
num++;
|
num++;
|
||||||
buffer[pbSize+i] = c;
|
buffer[pbSize+i] = c;
|
||||||
if (c == '\n')
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
catch (Py::Exception& e) {
|
catch (Py::Exception& e) {
|
||||||
e.clear();
|
e.clear();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user