Beispiel #1
0
def bytes_validator(optdict, name, value):
    """validate and return an integer for option of type 'bytes'"""
    return optparse.check_bytes(None, name, value)
Beispiel #2
0
def bytes_validator(optdict, name, value):
    """validate and return an integer for option of type 'bytes'"""
    return optparse.check_bytes(None, name, value)
Beispiel #3
0
def bytes_validator(optdict: Dict[str, str], name: str,
                    value: Union[int, str]) -> int:
    """validate and return an integer for option of type 'bytes'"""
    return optik_ext.check_bytes(None, name, value)