diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-08-07 21:09:09 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-08-07 21:09:09 -0300 |
commit | faa01b5858f9a7a80edb2120f3d767891801b897 (patch) | |
tree | f2e86ea73bf9284ea3970e6218343b9ed21edf58 /src | |
parent | 9e7671b4bc8847ab59cca6742e87b83933c60736 (diff) |
[refactor] use endStream public method instead of private one
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/soledad/client/_crypto.py | 2 | ||||
-rw-r--r-- | src/leap/soledad/client/_db/blobs.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/client/_crypto.py b/src/leap/soledad/client/_crypto.py index 8b0b8f81..873b82a8 100644 --- a/src/leap/soledad/client/_crypto.py +++ b/src/leap/soledad/client/_crypto.py @@ -435,7 +435,7 @@ class BlobDecryptor(object): return self._producer.startProducing(self._aes) def endStream(self): - self._end_stream() + return self._end_stream() def write(self, data): self._aes.write(data) diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py index 3bbbb1e5..87209570 100644 --- a/src/leap/soledad/client/_db/blobs.py +++ b/src/leap/soledad/client/_db/blobs.py @@ -149,7 +149,7 @@ class DecrypterBuffer(object): def close(self): if self.decrypter: real_size = self.decrypter.decrypted_content_size - return self.decrypter._end_stream(), real_size + return self.decrypter.endStream(), real_size else: return self.raw_data, self.raw_data.tell() |