/external/python/cpython3/Lib/ |
D | codecs.py | 509 lines = newchars.splitlines(keepends=True) 531 def readline(self, size=None, keepends=True): argument 550 if not keepends: 551 line = line.splitlines(keepends=False)[0] 568 lines = line.splitlines(keepends=True) 583 if not keepends: 584 line = line.splitlines(keepends=False)[0] 587 line0withoutend = lines[0].splitlines(keepends=False)[0] 592 if keepends: 599 if line and not keepends: [all …]
|
D | string.py | 97 lines = self.template[:i].splitlines(keepends=True)
|
D | doctest.py | 1413 return example.source.splitlines(keepends=True) 1676 want_lines = want.splitlines(keepends=True) 1677 got_lines = got.splitlines(keepends=True)
|
/external/python/cpython2/Lib/ |
D | codecs.py | 520 def readline(self, size=None, keepends=True): argument 539 if not keepends: 571 if not keepends: 579 if keepends: 586 if line and not keepends: 593 def readlines(self, sizehint=None, keepends=True): argument 606 return data.splitlines(keepends)
|
D | UserString.py | 122 def splitlines(self, keepends=0): return self.data.splitlines(keepends) argument
|
/external/python/cpython2/Lib/test/ |
D | test_codecs.py | 82 def readalllines(input, keepends=True, size=None): argument 86 line = reader.readline(size=size, keepends=keepends) 118 reader.readline(keepends=True), 122 reader.readline(keepends=True), 128 reader.readline(keepends=False), 132 reader.readline(keepends=False), 260 self.assertEqual(reader.readline(keepends=False), u"foo") 262 self.assertEqual(reader.readline(keepends=False), u"") 263 self.assertEqual(reader.readline(keepends=False), u"bar") 265 self.assertEqual(reader.readline(keepends=False), u"baz") [all …]
|
/external/python/cpython3/Objects/clinic/ |
D | bytesobject.c.h | 453 bytes_splitlines_impl(PyBytesObject *self, int keepends); 461 int keepends = 0; in bytes_splitlines() local 464 &keepends)) { in bytes_splitlines() 467 return_value = bytes_splitlines_impl(self, keepends); in bytes_splitlines()
|
D | bytearrayobject.c.h | 602 bytearray_splitlines_impl(PyByteArrayObject *self, int keepends); 610 int keepends = 0; in bytearray_splitlines() local 613 &keepends)) { in bytearray_splitlines() 616 return_value = bytearray_splitlines_impl(self, keepends); in bytearray_splitlines()
|
D | unicodeobject.c.h | 770 unicode_splitlines_impl(PyObject *self, int keepends); 778 int keepends = 0; in unicode_splitlines() local 781 &keepends)) { in unicode_splitlines() 784 return_value = unicode_splitlines_impl(self, keepends); in unicode_splitlines()
|
/external/python/cpython3/Lib/test/ |
D | test_codecs.py | 130 def readalllines(input, keepends=True, size=None): argument 134 line = reader.readline(size=size, keepends=keepends) 166 reader.readline(keepends=True), 170 reader.readline(keepends=True), 176 reader.readline(keepends=False), 180 reader.readline(keepends=False), 308 self.assertEqual(reader.readline(keepends=False), "foo") 310 self.assertEqual(reader.readline(keepends=False), "") 311 self.assertEqual(reader.readline(keepends=False), "bar") 313 self.assertEqual(reader.readline(keepends=False), "baz") [all …]
|
D | test_gzip.py | 223 self.assertEqual(lines, 50 * data1.splitlines(keepends=True)) 428 lines = (data1 * 50).decode("ascii").splitlines(keepends=True)
|
D | string_tests.py | 957 'splitlines', keepends=False) 959 "\nabc\ndef\r\nghi\n\r", 'splitlines', keepends=True)
|
D | test_calendar.py | 375 for line in s.splitlines(keepends=False):
|
D | test_nntplib.py | 1169 return iter(b.splitlines(keepends=True)) 1174 return iter(b.splitlines(keepends=False))
|
/external/python/cpython3/Doc/includes/ |
D | email-read-alternative.py | 30 print(''.join(simplest.get_content().splitlines(keepends=True)[:3]))
|
/external/python/cpython2/Objects/stringlib/ |
D | split.h | 341 int keepends) in stringlib_splitlines() argument 373 if (keepends) in stringlib_splitlines()
|
/external/python/cpython3/Objects/stringlib/ |
D | split.h | 338 int keepends) in STRINGLIB() 370 if (keepends) in STRINGLIB()
|
/external/python/cpython3/Lib/test/test_email/ |
D | __init__.py | 62 return [repr(x) for x in b.splitlines(keepends=True)]
|
/external/python/cpython3/Doc/library/ |
D | difflib.rst | 240 >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), 241 ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) 264 >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), 265 ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) 683 ... '''.splitlines(keepends=True) 692 ... '''.splitlines(keepends=True)
|
/external/python/cpython3/Lib/lib2to3/ |
D | refactor.py | 550 for line in input.splitlines(keepends=True): 594 new = str(tree).splitlines(keepends=True)
|
/external/python/cpython2/Doc/library/ |
D | codecs.rst | 678 .. method:: readline([size[, keepends]]) 685 If *keepends* is false line-endings will be stripped from the lines 689 *keepends* argument added. 692 .. method:: readlines([sizehint[, keepends]]) 698 included in the list entries if *keepends* is true.
|
/external/python/cpython3/Lib/collections/ |
D | __init__.py | 1270 def splitlines(self, keepends=False): return self.data.splitlines(keepends) argument
|
/external/python/cpython3/Lib/unittest/ |
D | case.py | 1212 firstlines = first.splitlines(keepends=True) 1213 secondlines = second.splitlines(keepends=True)
|
/external/python/cpython2/Include/ |
D | unicodeobject.h | 1174 int keepends /* If true, line end markers are included */
|
/external/python/cpython2/Objects/ |
D | bytearrayobject.c | 2690 int keepends = 0; in bytearray_splitlines() local 2692 if (!PyArg_ParseTuple(args, "|i:splitlines", &keepends)) in bytearray_splitlines() 2697 PyByteArray_GET_SIZE(self), keepends in bytearray_splitlines()
|