[pypy-svn] r9126 - pypy/dist/pypy/tool
tismer at codespeak.net
tismer at codespeak.net
Fri Feb 11 16:55:06 CET 2005
Author: tismer
Date: Fri Feb 11 16:55:06 2005
New Revision: 9126
Modified:
pypy/dist/pypy/tool/sourcetools.py
Log:
fixed backslash handling (how could I forget this)
Modified: pypy/dist/pypy/tool/sourcetools.py
==============================================================================
--- pypy/dist/pypy/tool/sourcetools.py (original)
+++ pypy/dist/pypy/tool/sourcetools.py Fri Feb 11 16:55:06 2005
@@ -16,6 +16,7 @@
doc = func
if doc is None:
return None
+ doc = doc.replace('\\', r'\\')
compare = []
for q in '"""', "'''":
txt = indent_str + q + doc.replace(q[0], "\\"+q[0]) + q + closing_str
More information about the Pypy-commit
mailing list