aboutsummaryrefslogtreecommitdiff
path: root/python/brotli.py
diff options
context:
space:
mode:
authorJanek <ttnbs@fastmail.com>2017-06-28 16:32:28 +0200
committerEugene Kliuchnikov <eustas@google.com>2017-06-28 16:32:28 +0200
commit58f5c37f3b5b07f3455a27671bdc48fd2e37cd54 (patch)
tree1b7d270015ed290bab4ce477d73d9105afa38029 /python/brotli.py
parentefdff3f14e5857b08fb2e9d1b973e7d446d59507 (diff)
downloadbrotli-58f5c37f3b5b07f3455a27671bdc48fd2e37cd54.zip
brotli-58f5c37f3b5b07f3455a27671bdc48fd2e37cd54.tar.gz
brotli-58f5c37f3b5b07f3455a27671bdc48fd2e37cd54.tar.bz2
Python: Decompressor: Streaming decompression support (#546)
python-brotli has Compressor for streaming compression but nothing for streaming decompression. This is a straight-forward copy of the Compressor code into the new class Decompressor.
Diffstat (limited to 'python/brotli.py')
-rw-r--r--python/brotli.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/brotli.py b/python/brotli.py
index ef6a87a..9c9bb4f 100644
--- a/python/brotli.py
+++ b/python/brotli.py
@@ -19,6 +19,9 @@ MODE_FONT = _brotli.MODE_FONT
# The Compressor object.
Compressor = _brotli.Compressor
+# The Decompressor object.
+Decompressor = _brotli.Decompressor
+
# Compress a byte string.
def compress(string, mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0,
dictionary=''):