wibiti/uncompyle2

Handling docstrings with embedded triple quotes

rocky opened this issue · 1 comments

rocky commented

This code with embedded triple quotes isn't handled properly.

r'''func placeholder - with ("""\nstring\n""")'''
def foo():
    r'''func placeholder - ' and with ("""\nstring\n""")'''

def bar():
    r"""func placeholder - ' and with ('''\nstring\n''') and \"\"\"\nstring\n\"\"\" """

A possible patch is:

rocky/python-uncompyle6@805e179

Fixed with this, b222c57