setup.py
def markdown_to_reST(text):
    '''This is not a general purpose converter. Only converts this readme'''
    # Convert parameters to italics and prepend a newline
    text = re.sub(pattern=r"\n       (\w+) - (.+)\n",
                  repl=r"\n\n       *\g<1>* - \g<2>\n",
                  string=text)

    # Parse [http://url](text), and just leave the url
    text = re.sub(pattern=r"\[([^\]]+)\]\([^)]+\)",
                  repl=r"\g<1>",
                  string=text)

    # Disable formatting of numbered lists
    text = re.sub(pattern=r"\n(\d+). ",
                  repl=r"\n\\\g<1>. ",
                  string=text)
    return text
def markdown_to_reST(text):
    '''This is not a general purpose converter. Only converts this readme'''
    # Convert parameters to italics and prepend a newline
    text = re.sub(pattern=r"\n       (\w+) - (.+)\n",
                  repl=r"\n\n       *\g<1>* - \g<2>\n",
                  string=text)

    # Parse [http://url](text), and just leave the url
    text = re.sub(pattern=r"\[([^\]]+)\]\([^)]+\)",
                  repl=r"\g<1>",
                  string=text)

    # Disable formatting of numbered lists
    text = re.sub(pattern=r"\n(\d+). ",
                  repl=r"\n\\\g<1>. ",
                  string=text)
    return text
def markdown_to_reST ( text ) : # Convert parameters to italics and prepend a newline text = re . sub ( pattern = r"\n       (\w+) - (.+)\n" , repl = r"\n\n       *\g<1>* - \g<2>\n" , string = text ) # Parse [http://url](text), and just leave the url text = re . sub ( pattern = r"\[([^\]]+)\]\([^)]+\)" , repl = r"\g<1>" , string = text ) # Disable formatting of numbered lists text = re . sub ( pattern = r"\n(\d+). " , repl = r"\n\\\g<1>. " , string = text ) return text
This is not a general purpose converter. Only converts this readme
This is not a general purpose converter . Only converts this readme