Fix docstring bug..

small sync with python 2.4 branch
This commit is contained in:
rocky
2017-12-02 21:11:19 -05:00
parent f7abc69861
commit e172a8f3c0
6 changed files with 51 additions and 16 deletions

View File

@@ -13,6 +13,7 @@ def print_docstring(self, indent, docstring):
quote = '"""'
else:
quote = "'''"
docstring = docstring.replace("'''", "\\'''")
except:
return False
self.write(indent)