[issue13012] Allow keyword argument in str.splitlines()

Meador Inge report at bugs.python.org
Wed Sep 21 03:32:41 CEST 2011


Meador Inge <meadori at gmail.com> added the comment:

Patch looks good.  I noticed a change in the conventional type for 
'keepends' from 'int' to 'bool'.  Several unit tests were updated to 
match this change.  Perhaps other call sites should be updated too?  A 
little greping shows:

$ grep -Rl 'splitlines(0)' * --include='*.py'
Doc/tools/docutils/writers/newlatex2e/__init__.py
$ grep -Rl 'splitlines(1)' * --include='*.py'
Doc/tools/sphinx/pycode/pgen2/tokenize.py
Doc/tools/docutils/readers/python/moduleparser.py
Lib/test/test_tokenize.py
Lib/difflib.py
Lib/lib2to3/pgen2/tokenize.py
Lib/codecs.py

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13012>
_______________________________________


More information about the Python-bugs-list mailing list