tags 433740 +patch thankyou Hi!
Please find attached a patch for the bug. However, do note that: 1. Upstream has released a new tarball. 2. The diff is _very_ large. Please clean the package up. 3. Clean up the rules to remove unnecessary commented out lines. HTH. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
diff -urN pybaz-1.5pre1/mypydoc pybaz-1.5pre1.new/mypydoc --- pybaz-1.5pre1/mypydoc 2005-11-30 16:13:25.000000000 +0530 +++ pybaz-1.5pre1.new/mypydoc 2007-08-21 13:11:07.000000000 +0530 @@ -19,19 +19,22 @@ import sys import inspect import epydoc.cli -import epydoc.uid +import epydoc.docintrospecter def find_function_module(func): # We trust the __module__ attribute of functions. That makes it # possible to have functions documented in a module different from # the module where they are defined. try: - ret = sys.modules[func.__module__] - return ret + ret = sys.modules[func.__class__.__module__] + if ret == sys.modules['__builtin__']: + return '__builtin__' + else: + return ret except KeyError: pass raise ValueError("Could not find a module for %s" % func.func_name) -epydoc.uid._find_function_module = find_function_module +epydoc.docintrospecter._find_function_module = find_function_module epydoc.cli.cli()