Indent script for clarity
Extract variable for clarity of reading
Rewrite test to remove Windows-specific handling and instead capture the underlying expectation.
Rewrite file operations using context managers.
Add compatibility shim for tarfile.open
Include __enter__ in shim
Try without self, as methods are set on the instance. Also include parameters to __exit__.
Remove spurious reference to self. Remove debugging code.
Extract common operation of dedent and left strip
Extract script variable for clarity
Reindent
reset_setup_stop_context is apparently no longer needed.
Remove reset_setup_stop_context and reindent.
Remove unused import
Reindent for clarity
Slice the iterable rather than converting to a list and slicing that.
Please don't feign a monkey patch when one isn't used.
Merge with master