From a060a8abd51727dca6a44ef984d5f5a5e6db46f8 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Thu, 30 Jul 2015 03:23:43 -0700 Subject: [PATCH] fix gunzip_bytes doctest --- boltons/strutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boltons/strutils.py b/boltons/strutils.py index c14da97..f1ba91f 100644 --- a/boltons/strutils.py +++ b/boltons/strutils.py @@ -578,9 +578,9 @@ def gunzip_bytes(bytestring): use this one-liner. Use this tried-and-true utility function to decompress gzip from bytes. - >>> ungzip_bytes(_EMPTY_GZIP_BYTES) == b'' + >>> gunzip_bytes(_EMPTY_GZIP_BYTES) == b'' True - >>> ungzip_bytes(_NON_EMPTY_GZIP_BYTES).rstrip() == b'bytesahoy!' + >>> gunzip_bytes(_NON_EMPTY_GZIP_BYTES).rstrip() == b'bytesahoy!' True """ return zlib.decompress(bytestring, 16 + zlib.MAX_WBITS)