def _arg_count ( func ):
    if (type( func ) is MethodType) and (func.im_self is not None):
        return func.func_code.co_argcount - 1
    return func.func_code.co_argcount

#-------------------------------------------------------------------------------
#  Property error handling functions:
#-------------------------------------------------------------------------------
Return disk usage statistics about the given path.
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/_arg_count--crossover with--dataset/ETHPy150Open cgoldberg/linux-metrics/linux_metrics/disk_stat.py/disk_usage