]> granicus.if.org Git - python/commit
Since inspect.isfunction(obj) is a precondition for calling
authorTim Peters <tim.peters@gmail.com>
Thu, 20 Sep 2001 06:08:24 +0000 (06:08 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 20 Sep 2001 06:08:24 +0000 (06:08 +0000)
commit4bcfa317eec0eb479586be10f326aefb994ccf28
tree043bbfda6c4059ed0d2f2330d35022ed38b1dbdf
parentf1d90b965e50c17d09535c1f740942dde3d8a294
Since inspect.isfunction(obj) is a precondition for calling
inspect.getargspec(obj), test isfunction() directly in pydoc.py instead
of trying to indirectly deduce isfunction() in pydoc by virtue of
failing a combination of other tests.  This shouldn't have any visible
effect, except perhaps to squash a TypeError death if there was some path
thru this code that was inferring isfunction() by mistake.
Lib/pydoc.py