+ fix bug in PyStreambuf when reading binary data

This commit is contained in:
wmayer 2016-06-11 15:38:51 +02:00
parent 10bb9fa5cc
commit 051a9fce73

View File

@ -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();