From 55cd2013f371244da452a5030df963b652515216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Fri, 19 Apr 2019 14:02:25 +0200 Subject: [PATCH] made bunker/files/bunkeredfile tarfile.TarFile compatible --- bunker/files/bunkeredfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bunker/files/bunkeredfile.py b/bunker/files/bunkeredfile.py index d57ee36..ba2bfa8 100644 --- a/bunker/files/bunkeredfile.py +++ b/bunker/files/bunkeredfile.py @@ -155,3 +155,5 @@ class BunkeredFile(io.RawIOBase): def rewind(self): self._file.seek(0, 0) + def __bool__(self): + return True