Skip to content

Commit

Permalink
Copy comment to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
itziakos committed Dec 12, 2011
1 parent 98293fc commit 107083d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions traits/trait_handlers.py
Expand Up @@ -83,6 +83,8 @@
#-------------------------------------------------------------------------------

def _arg_count ( func ):
""" Returns the correct argument count for a specified function or method.
"""
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
Expand Down

0 comments on commit 107083d

Please sign in to comment.