Skip to content

Instantly share code, notes, and snippets.

@wangxiaodong
Created August 6, 2013 11:49
Show Gist options
  • Save wangxiaodong/6163829 to your computer and use it in GitHub Desktop.
Save wangxiaodong/6163829 to your computer and use it in GitHub Desktop.
webpy make doc error webpy/tools/makedoc.py
# 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