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/test/test_inspect.py b/Lib/test/test_inspect.py index 7666fe4..06132f2 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py
@@ -304,7 +304,7 @@ getlines = linecache.getlines def monkey(filename, module_globals=None): if filename == fn: - return source.splitlines(True) + return source.splitlines(keepends=True) else: return getlines(filename, module_globals) linecache.getlines = monkey