moskied/clime — pull request #1 by benwei (2012-03-21 05:53:33+00:00)
Title: fixed built-in function TypeError and mathlog example

python examples/mathlog.py
Traceback (most recent call last):
File "examples/mathlog.py", line 9, in
clime.main()
File "/Users/ben_wei/src/github/clime/clime.py", line 306, in main
prog(sys.argv[1:])
File "/Users/ben_wei/src/github/clime/clime.py", line 264, in __call__
self.help()
File "/Users/ben_wei/src/github/clime/clime.py", line 240, in help
usages = self.get_cmds_usages()
File "/Users/ben_wei/src/github/clime/clime.py", line 225, in get_cmds_usages
return [ Command(func).get_usage() for func in self.funcs.values() ]
File "/Users/ben_wei/src/github/clime/clime.py", line 54, in __init__
spec = inspect.getargspec(func)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/inspect.py", line 813, in getargspec
raise TypeError('{!r} is not a Python function'.format(func))
TypeError: is not a Python function