boltons icon indicating copy to clipboard operation
boltons copied to clipboard

Fixes and improvements to SpooledBytesIO & SpooledStringIO

Open bwatson-dk opened this issue 2 years ago • 0 comments

  • Inherit from io.IOBase so instance & type checks are simpler
  • __eq__ and __ne__ no longer need to load both files completely into memory
  • __eq__ and __ne__ reset read-head in comparison errors
  • Some methods now raise a ValueError if the file is closed. This brings the implementations closer to StringIO and implementations from the io module
  • Added some additional unittests
  • Removed some Python 2.6 style format strings

bwatson-dk avatar Mar 29 '22 17:03 bwatson-dk