]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in backporting fix of issue #16411 to 2.7.
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 11 Nov 2012 02:28:21 +0000 (03:28 +0100)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 11 Nov 2012 02:28:21 +0000 (03:28 +0100)
Modules/zlibmodule.c

index d6c6728f8ec58e819ee63c7d6a4bba14ad6cc4b6..6864da296fce1830d09a0a880fb366195114013d 100644 (file)
@@ -830,8 +830,8 @@ PyZlib_unflush(compobject *self, PyObject *args)
     ENTER_ZLIB
 
     start_total_out = self->zst.total_out;
-    self->zst.avail_in = PyBytes_GET_SIZE(self->unconsumed_tail);
-    self->zst.next_in = (Byte *)PyBytes_AS_STRING(self->unconsumed_tail);
+    self->zst.avail_in = PyString_GET_SIZE(self->unconsumed_tail);
+    self->zst.next_in = (Byte *)PyString_AS_STRING(self->unconsumed_tail);
     self->zst.avail_out = length;
     self->zst.next_out = (Byte *)PyString_AS_STRING(retval);