Commit d75b726f authored by Robert Bradshaw's avatar Robert Bradshaw

Optimization for shorter docstrings.

parent 4479643d
......@@ -144,4 +144,6 @@ def escape_byte_string(s):
return ''.join(l)
def split_docstring(s):
if len(s) < 2047:
return s
return '\\n\"\"'.join(s.split(r'\n'))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment