You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the code for python here does not indicate what int values are appropriate for entry. Suggest the description for the mode parameter be altered from:
# Compress a byte string.
def compress(string, mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0):
"""Compress a byte string.
Args:
string (bytes): The input data.
mode (int, optional): The compression mode can be MODE_GENERIC (default),
MODE_TEXT (for UTF-8 format text input) or MODE_FONT (for WOFF 2.0).
to:
# Compress a byte string.
def compress(string, mode=0, quality=11, lgwin=22, lgblock=0):
"""Compress a byte string.
Args:
string (bytes): The input data.
mode (int, optional): The compression mode can be of value 0 for generic input (MODE_GENERIC),
of value 1 for UTF-8 format text input (MODE_TEXT ) or of value 2 for WOFF 2.0 font data (MODE_FONT).
Default is 0.
The integer values are drawn from the commentary in the `
The text was updated successfully, but these errors were encountered:
Currently the code for python here does not indicate what
int
values are appropriate for entry. Suggest the description for the mode parameter be altered from:to:
The integer values are drawn from the commentary in the `
The text was updated successfully, but these errors were encountered: