refactor is_function

This commit is contained in:
debugtalk
2018-11-15 20:05:57 +08:00
parent a116c651f9
commit bb3dcb2756
3 changed files with 5 additions and 7 deletions

View File

@@ -105,10 +105,9 @@ def is_testcase_path(path):
###############################################################################
def is_function(tup):
""" Takes (name, object) tuple, returns True if it is a function.
def is_function(item):
""" Takes item object, returns True if it is a function.
"""
name, item = tup
return isinstance(item, types.FunctionType)