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_calendar.py b/Lib/test/test_calendar.py index d3093ac..7180afe 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py
@@ -177,7 +177,7 @@ return not c.isspace() and not c.isdigit() lines = [] - for line in s.splitlines(False): + for line in s.splitlines(keepends=False): # Drop texts, as they are locale dependent if line and not filter(neitherspacenordigit, line): lines.append(line)