Lines Matching refs:keepends
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),
246 self.assertEqual(reader.readline(keepends=False), u"foo")
248 self.assertEqual(reader.readline(keepends=False), u"")
249 self.assertEqual(reader.readline(keepends=False), u"bar")
251 self.assertEqual(reader.readline(keepends=False), u"baz")
252 self.assertEqual(reader.readline(keepends=False), u"")
256 self.assertEqual(reader.readline(keepends=True), u"foo\r")
258 self.assertEqual(reader.readline(keepends=True), u"\n")
259 self.assertEqual(reader.readline(keepends=True), u"bar\r")
261 self.assertEqual(reader.readline(keepends=True), u"baz")
262 self.assertEqual(reader.readline(keepends=True), u"")
264 self.assertEqual(reader.readline(keepends=True), u"foo\r\n")