Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Return a string without ASCII NULs.

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

        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('\0')]
    except ValueError:
        return str
        


src/o/p/openerp-extra-6.1-HEAD/etl/lib/etl/connector/dbfpy/fields.py   openerp-extra-6.1(Download)
        assert len(string) == 32
        _length = ord(string[16])
        return cls(utils.unzfill(string)[:11], _length, ord(string[17]),
            start, start + _length, ignoreErrors=ignoreErrors)
    fromString = classmethod(fromString)