def get_thg_version(path):
    txt = exec_shell_cmd('thg version', path).splitlines()[0]
    match = re.match('TortoiseHg Dialogs \(version ([0-9\.]*)\)', txt)
    if match is not None:
        return match.groups()[0]
Gzip a string.
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/get_thg_version--crossover with--dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/plugins/decode.py/gzip_encode