Created
August 6, 2013 11:49
-
-
Save wangxiaodong/6163829 to your computer and use it in GitHub Desktop.
webpy make doc error webpy/tools/makedoc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ori: | |
#def arg_string(func): | |
# """Returns a nice argstring for a function or method""" | |
# return inspect.formatargspec(*inspect.getargspec(func)) | |
# the module tamplete : | |
# class Template ctor | |
# def __init__(self, text, filename='<template>', filter=None, globals=None, builtins=None, extensions=None): | |
# the '<' and '>' cause the html break | |
# using markdown.htmlquote replace '<' and '>' | |
# work profectly | |
def arg_string(func): | |
"""Returns a nice argstring for a function or method""" | |
return markdown.htmlquote(inspect.formatargspec(*inspect.getargspec(func))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment