bpo-38781: Clear buffer in MemoryHandler flush (GH-17132)
This makes it easier to use a custom buffer when subclassing MemoryHandler (by avoiding the explicity empty list literal assignment in the flush method). For example, collection.deque can now be used without any modifications to MemoryHandler.flush. The same applies to BufferingHandler.
D
Daniel Andersson committed
d89cea15ad37e873003fc74ec2c77660ab620b00
Parent: 9c28449
Committed by Vinay Sajip <vinay_sajip@yahoo.co.uk>
on 11/13/2019, 9:03:45 AM