Commit 047ce8c4 by Henry Schreiner Committed by Wenzel Jakob

Fix iostream when used with nogil (#1368)

parent 95f750a8
......@@ -43,8 +43,11 @@ private:
// This subtraction cannot be negative, so dropping the sign
str line(pbase(), static_cast<size_t>(pptr() - pbase()));
{
gil_scoped_acquire tmp;
pywrite(line);
pyflush();
}
setp(pbase(), epptr());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment