Details
-
Type:
Defect
-
Status:
Closed
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: Release 1.5
-
Fix Version/s: Release 1.5
-
Component/s: None
-
Labels:
-
Patch:Code and Test
-
Approval:Ok
Description
Unlike prn, pprint doesn't flush the underlying stream.
pretty_writer currently overrides .flush with behaviour that pushes its own data, but does not flush the underlying stream.
pprint should behave similarly to prn with respect to flushing the underlying stream.
Test included.
Patch should ensure that flushing happens after pprint, without introducing any additional unnecessary flushes.