/external/python/cpython2/Lib/idlelib/idle_test/ |
D | test_io.py | 226 self.assertRaises(TypeError, f.readlines, 1.5) 227 self.assertRaises(TypeError, f.readlines, '1') 228 self.assertRaises(TypeError, f.readlines, 1, 1) 234 self.assertEqual(f.readlines(), ['one\n', 'two\n']) 236 self.assertEqual(f.readlines(-1), ['one\n', 'two\n']) 238 self.assertEqual(f.readlines(None), ['one\n', 'two\n']) 240 self.assertEqual(f.readlines(0), ['one\n', 'two\n']) 242 self.assertEqual(f.readlines(3), ['one\n']) 244 self.assertEqual(f.readlines(4), ['one\n', 'two\n']) 247 self.assertRaises(TypeError, f.readlines, 1.5) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_bz2.py | 103 for line in sio.readlines(): 110 self.assertRaises(TypeError, bz2f.readlines, None) 112 self.assertEqual(bz2f.readlines(), sio.readlines()) 119 self.assertEqual(list(iter(bz2f)), sio.readlines()) 130 self.assertRaises(ValueError, bz2f.readlines) 137 self.assertEqual(list(bz2f.xreadlines()), sio.readlines()) 182 bz2f.writelines(sio.readlines()) 271 lines = bz2f.readlines() 274 xlines = list(bz2f.readlines()) 323 self.assertRaises(ValueError, f.readlines)
|
D | test_StringIO.py | 33 eq(len(self._fp.readlines(60)), 2) 128 self.assertEqual(f.readlines(), lines) 129 self.assertEqual(f.readlines(), []) 131 self.assertEqual(f.readlines(size), lines) 132 self.assertEqual(f.readlines(), [])
|
D | test_univnewlines2k.py | 57 data = fp.readlines() 75 data = fp.readlines() 78 data = fp.readlines()
|
D | test_univnewlines.py | 67 data = fp.readlines() 85 data = fp.readlines() 88 data = fp.readlines()
|
D | test_memoryio.py | 212 self.assertEqual(memio.readlines(), [buf] * 10) 214 self.assertEqual(memio.readlines(), [buf[5:]] + [buf] * 9) 217 self.assertEqual(memio.readlines(15L), [buf] * 2) 219 self.assertEqual(memio.readlines(-1), [buf] * 10) 221 self.assertEqual(memio.readlines(0), [buf] * 10) 223 self.assertEqual(type(memio.readlines()[0]), type(buf)) 225 self.assertEqual(memio.readlines(None), [buf] * 10) 226 self.assertRaises(TypeError, memio.readlines, '') 228 self.assertRaises(ValueError, memio.readlines) 604 self.assertEqual(memio.readlines(), ["a\r", "b\r", "\r", "c\r", "d"]) [all …]
|
/external/python/cpython2/Tools/scripts/ |
D | ndiff.py | 74 a = f1.readlines(); f1.close() 75 b = f2.readlines(); f2.close() 120 restored = difflib.restore(sys.stdin.readlines(), which)
|
D | diff.py | 35 fromlines = open(fromfile, 'U').readlines() 36 tolines = open(tofile, 'U').readlines()
|
/external/libxml2/python/ |
D | setup.py.in | 113 for line in head.readlines(): 118 for line in generated.readlines(): 138 for line in head.readlines(): 143 for line in generated.readlines():
|
/external/toolchain-utils/binary_search_tool/test/ |
D | is_good_noinc_prune.py | 22 num_good_args = len(good_args.readlines()) 25 num_bad_args = len(bad_args.readlines())
|
/external/pdfium/testing/tools/ |
D | text_diff.py | 17 str1 = f1.readlines(); 19 str2 = f2.readlines();
|
/external/libxml2/ |
D | build_glob.py | 31 global_data=open("global.data").readlines() 32 global_code=open("globals.c").readlines() 33 global_hdr=open("include/libxml/globals.h").readlines()
|
D | regressions.py | 38 exp = expected.readlines() 95 data = file.readlines() # no call by reference, so I cheat 156 pin.writelines(infile.readlines())
|
/external/python/cpython2/Tools/framer/ |
D | example.py | 73 def readlines(self, hint): member in cStringIO.InputType 75 readlines.pyarg = "|i"
|
/external/ltp/testcases/network/nfsv4/acl/ |
D | random_gen.py | 76 lines = f.readlines() 98 lines = f.readlines() 117 lines = f.readlines() 130 lines = f.readlines()
|
/external/autotest/client/bin/ |
D | os_dep.py | 28 for line in open('/etc/ld.so.conf', 'r').readlines(): 36 for conf_file_line in open(conf_file, 'r').readlines():
|
/external/trappy/tests/ |
D | test_copyright.py | 29 lines = fin.readlines(2048) 75 lines = fin.readlines()
|
/external/python/cpython2/Tools/freeze/ |
D | bkfile.py | 26 self.readlines = self.__file.readlines
|
/external/autotest/site_utils/ |
D | seed_test_attr.py | 78 whitelist = {line.strip() for line in f.readlines() if line.strip()} 125 lines = f.readlines()
|
/external/v8/tools/clang/translation_unit/ |
D | test_translation_unit.py | 67 expected_output = f.readlines() 69 actual_output = f.readlines()
|
/external/clang/tools/clang-format/ |
D | clang-format-diff.py | 111 code = f.readlines() 112 formatted_code = StringIO.StringIO(stdout).readlines()
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Functions/ |
D | tFunction_listingFunctions.py | 322 lines = f_temp_file.readlines() 374 lines = f_temp_file.readlines() 426 lines = f_temp_file.readlines() 475 lines = f_temp_file.readlines()
|
/external/python/cpython2/Lib/ |
D | StringIO.py | 168 def readlines(self, sizehint = 0): member in StringIO 284 lines = open(file, 'r').readlines() 306 list = f.readlines()
|
D | multifile.py | 112 def readlines(self): member in MultiFile 121 return ''.join(self.readlines())
|
/external/autotest/client/cros/ |
D | kernel_trace.py | 135 for ln in fd.readlines(): 182 for ln in fd.readlines():
|