diff options
Diffstat (limited to 'kombu/compression.py')
-rw-r--r-- | kombu/compression.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kombu/compression.py b/kombu/compression.py index f98c971b..2c1c8591 100644 --- a/kombu/compression.py +++ b/kombu/compression.py @@ -18,6 +18,7 @@ def register(encoder, decoder, content_type, aliases=None): """Register new compression method. Arguments: + --------- encoder (Callable): Function used to compress text. decoder (Callable): Function used to decompress previously compressed text. @@ -52,6 +53,7 @@ def compress(body, content_type): """Compress text. Arguments: + --------- body (AnyStr): The text to compress. content_type (str): mime-type of compression method to use. """ @@ -63,6 +65,7 @@ def decompress(body, content_type): """Decompress compressed text. Arguments: + --------- body (AnyStr): Previously compressed text to uncompress. content_type (str): mime-type of compression method used. """ |