--- /opt/gtk2/lib/python2.2/inspect.py.orig Fri Apr 12 21:14:16 2002 +++ /opt/gtk2/lib/python2.2/inspect.py Fri Apr 12 21:15:34 2002 @@ -264,7 +264,11 @@ def getdoc(object): indented to line up with blocks of code, any whitespace than can be uniformly removed from the second line onwards is removed.""" if hasattr(object, '__doc__') and object.__doc__: - lines = string.split(string.expandtabs(object.__doc__), '\n') + try: + docstring = str(object.__doc__) + except: + return None + lines = string.split(string.expandtabs(docstring), '\n') margin = None for line in lines[1:]: content = len(string.lstrip(line))