commit | d8b509b192a67f0f217ae52ed81fc91bc27a1818 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Wed Sep 28 17:37:55 2011 +0300 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Wed Sep 28 17:37:55 2011 +0300 |
tree | adab8922723e179e67d546100d19d06d444d7599 | |
parent | a6e50f589fa328a77b70cde0747f70210c650f49 [diff] [blame] |
#13012: use splitlines(keepends=True/False) instead of splitlines(0/1).
diff --git a/Lib/argparse.py b/Lib/argparse.py index f0cfe27..236e1e8 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py
@@ -641,7 +641,7 @@ """ def _fill_text(self, text, width, indent): - return ''.join([indent + line for line in text.splitlines(True)]) + return ''.join(indent + line for line in text.splitlines(keepends=True)) class RawTextHelpFormatter(RawDescriptionHelpFormatter):