Searched refs:readlines (Results 1 – 25 of 519) sorted by relevance
12345678910>>...21
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 …]
138 self.assertRaises(TypeError, f.readlines, 1.5)139 self.assertRaises(TypeError, f.readlines, '1')140 self.assertRaises(TypeError, f.readlines, 1, 1)146 self.assertEqual(f.readlines(), ['one\n', 'two\n'])148 self.assertEqual(f.readlines(-1), ['one\n', 'two\n'])150 self.assertEqual(f.readlines(None), ['one\n', 'two\n'])152 self.assertEqual(f.readlines(0), ['one\n', 'two\n'])154 self.assertEqual(f.readlines(3), ['one\n'])156 self.assertEqual(f.readlines(4), ['one\n', 'two\n'])159 self.assertRaises(TypeError, f.readlines, 1.5)[all …]
82 lines = f.readlines()98 lines = f.readlines()117 lines = f.readlines()136 lines = f.readlines()193 lines = f.readlines()214 lines = f.readlines()236 lines = f.readlines()241 lines = f.readlines()
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)
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(), [])
57 data = fp.readlines()75 data = fp.readlines()78 data = fp.readlines()
67 data = fp.readlines()85 data = fp.readlines()88 data = fp.readlines()
74 a = f1.readlines(); f1.close()75 b = f2.readlines(); f2.close()120 restored = difflib.restore(sys.stdin.readlines(), which)
22 lines = fp.readlines()37 lines1 = fp.readlines()39 lines2 = fp.readlines()
66 data = fp.readlines()84 data = fp.readlines()87 data = fp.readlines()
113 for line in head.readlines():118 for line in generated.readlines():138 for line in head.readlines():143 for line in generated.readlines():
18 str1 = f1.readlines()20 str2 = f2.readlines()
27 num_good_args = len(good_args.readlines())30 num_bad_args = len(bad_args.readlines())
39 return f.readlines()42 return f.readlines()
31 global_data=open("global.data").readlines()32 global_code=open("globals.c").readlines()33 global_hdr=open("include/libxml/globals.h").readlines()
73 def readlines(self, hint): member in cStringIO.InputType75 readlines.pyarg = "|i"
6 for asc_line in sys.stdin.readlines():16 for mpw_line in sys.stdin.readlines():
245 result = h.readlines()253 result = h.readlines()282 result = f.readlines()306 rest = h.readlines()325 handle.readlines.return_value = ['bar']329 self.assertEqual(handle.readlines(), ['bar'])
255 result = h.readlines()263 result = h.readlines()292 result = f.readlines()316 rest = h.readlines()335 handle.readlines.return_value = ['bar']339 self.assertEqual(handle.readlines(), ['bar'])
73 addresses = [l for l in fd.readlines() if l.find("ether") >= 0 or112 lines = f.readlines()135 interfaces = [line[:line.find(':')] for line in fd.readlines()
39 converted_dis = f.readlines()[3:]42 optimized_dis = f.readlines()[3:]
77 lines = f.readlines()99 lines = f.readlines()118 lines = f.readlines()131 lines = f.readlines()