def _writeclientdoc(doc, thing, forceload=<NUM_LIT:0>):
docmodule = pydoc.HTMLDoc.docmodule<EOL>def strongarm(self, object, name=None, mod=None, *ignored):<EOL><INDENT>result = docmodule(self, object, name, mod, *ignored)<EOL>nonmembers = []<EOL>push = nonmembers.append<EOL>for k,v in inspect.getmembers(object, inspect.isclass):<EOL><INDENT>if inspect.getmodule(v) is not object and getattr(v,'<STR_LIT>',None) is not None:<EOL><INDENT>push('<STR_LIT>' %(v.__name__,k))<EOL><DEDENT><DEDENT>result += self.bigsection('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'.join(nonmembers))<EOL>return result<EOL><DEDENT>pydoc.HTMLDoc.docmodule = strongarm<EOL>try:<EOL><INDENT>object, name = pydoc.resolve(thing, forceload)<EOL>page = pydoc.html.page(pydoc.describe(object), pydoc.html.document(object, name))<EOL>name = os.path.join(doc, name + '<STR_LIT>')<EOL>file = open(name, '<STR_LIT:w>')<EOL>file.write(page)<EOL>file.close()<EOL><DEDENT>except (ImportError, pydoc.ErrorDuringImport) as value:<EOL><INDENT>log.debug(str(value))<EOL><DEDENT>pydoc.HTMLDoc.docmodule = docmodule<EOL>
Write HTML documentation to a file in the current directory.