def unzfill(str):
    """Return a string without ASCII NULs.

    This function searchers for the first NUL (ASCII 0) occurance
    and truncates string till that position.

    """
    try:
        return str[:str.index(b'\0')]
    except __HOLE__:
        return str
dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/utils.py/unzfill