177c177 < ReturnVal = PyByteArray_FromStringAndSize((char *)output, --- > ReturnVal = PyBytes_FromStringAndSize((char *)output, 214,215c214,215 < if (!(result_str = PyByteArray_FromStringAndSize(NULL, r_strlen))) < return NULL; --- > if (!(result_str = PyBytes_FromStringAndSize(NULL, r_strlen))) > return NULL; 219c219 < zst.next_out = (Byte *)PyByteArray_AS_STRING(result_str); --- > zst.next_out = (Byte *)PyBytes_AS_STRING(result_str); 259c259 < if (PyByteArray_Resize(result_str, r_strlen << 1) < 0) { --- > if (_PyBytes_Resize(&result_str, r_strlen << 1) < 0) { 264c264 < (unsigned char *)PyByteArray_AS_STRING(result_str) + r_strlen; --- > (unsigned char *)PyBytes_AS_STRING(result_str) + r_strlen; 281c281 < if (PyByteArray_Resize(result_str, zst.total_out) < 0) --- > if (_PyBytes_Resize(&result_str, zst.total_out) < 0)