@@ -267,8 +267,6 @@ def close(self):
|
267 | 267 | def _set_cache_(self, attr): |
268 | 268 | if attr == "_packfile_checksum": |
269 | 269 | self._packfile_checksum = self._cursor.map()[-40:-20] |
270 | | -elif attr == "_packfile_checksum": |
271 | | -self._packfile_checksum = self._cursor.map()[-20:] |
272 | 270 | elif attr == "_cursor": |
273 | 271 | # Note: We don't lock the file when reading as we cannot be sure |
274 | 272 | # that we can actually write to the location - it could be a read-only |
@@ -848,7 +846,6 @@ def is_valid_stream(self, sha, use_crc=False):
|
848 | 846 | assert shawriter.sha(as_hex=False) == sha |
849 | 847 | return shawriter.sha(as_hex=False) == sha |
850 | 848 | # END handle crc/sha verification |
851 | | -return True |
852 | 849 | |
853 | 850 | def info_iter(self): |
854 | 851 | """ |
|