tools/android/appstats.py
def ValidateNonNegativeNumber(val):
    """An argparse validation method to make sure a number is not negative."""
    ival = int(val)
    if ival < 0:
      raise argparse.ArgumentTypeError("%s is a negative integer" % val)
    return ival
An argparse validation method to make sure a number is not negative.
An argparse validation method to make sure a number is not negative.
An argparse validation method to make sure a number is not negative .
def ValidateNonNegativeNumber(val):
    ival = int(val)
    if ival < 0:
      raise argparse.ArgumentTypeError("%s is a negative integer" % val)
    return ival
def ValidateNonNegativeNumber ( val ) : ival = int ( val ) if ival < 0 : raise argparse . ArgumentTypeError ( "%s is a negative integer" % val ) return ival
An argparse validation method to make sure a number is not negative.
An argparse validation method to make sure a number is not negative .
"""An argparse validation method to make sure a number is not negative."""
val