Home
last modified time | relevance | path

Searched refs:readline (Results 1 – 25 of 192) sorted by relevance

12345678

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_readline.py12 readline = import_module('readline') variable
16 readline.clear_history()
18 readline.add_history("first line")
19 readline.add_history("second line")
21 self.assertEqual(readline.get_history_item(0), None)
22 self.assertEqual(readline.get_history_item(1), "first line")
23 self.assertEqual(readline.get_history_item(2), "second line")
25 readline.replace_history_item(0, "replaced line")
26 self.assertEqual(readline.get_history_item(0), None)
27 self.assertEqual(readline.get_history_item(1), "replaced line")
[all …]
Dtest_bufio.py32 line = f.readline()
34 line = f.readline()
36 line = f.readline()
Dtest_univnewlines2k.py64 d = fp.readline()
67 d = fp.readline()
73 fp.readline()
111 data = fp.readline()
Dtest_codecs.py80 line = reader.readline(size=size, keepends=keepends)
111 reader.readline(keepends=True),
117 reader.readline(keepends=False),
197 self.assertEqual(reader.readline(keepends=False), u"foo")
199 self.assertEqual(reader.readline(keepends=False), u"")
200 self.assertEqual(reader.readline(keepends=False), u"bar")
202 self.assertEqual(reader.readline(keepends=False), u"baz")
203 self.assertEqual(reader.readline(keepends=False), u"")
207 self.assertEqual(reader.readline(keepends=True), u"foo\r")
209 self.assertEqual(reader.readline(keepends=True), u"\n")
[all …]
Dtest_univnewlines.py74 d = fp.readline()
77 d = fp.readline()
83 fp.readline()
107 data = fp.readline()
Dtest_tokenize.py543 for type, token, start, end, line in generate_tokens(f.readline):
574 g = generate_tokens(StringIO(s).readline) # tokenize the string
Dtest_memoryio.py181 self.assertEqual(memio.readline(0), self.EOF)
182 self.assertEqual(memio.readline(), buf)
183 self.assertEqual(memio.readline(), buf)
184 self.assertEqual(memio.readline(), self.EOF)
186 self.assertEqual(memio.readline(5), buf[:5])
188 self.assertEqual(memio.readline(5L), buf[5:10])
189 self.assertEqual(memio.readline(5), buf[10:15])
191 self.assertEqual(memio.readline(-1), buf)
193 self.assertEqual(memio.readline(0), self.EOF)
197 self.assertEqual(memio.readline(), buf)
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/
Dprofile.py120 line = trace.readline()
169 line = info_file_str.readline().strip('\n')
177 line = info_file_str.readline().strip('\n')
182 line = info_file_str.readline().strip('\n')
187 line = info_file_str.readline().strip('\n')
189 line = info_file_str.readline().strip('\n')
190 line = info_file_str.readline().strip('\n')
199 line = info_func_str.readline().strip('\n')
204 line = info_func_str.readline().strip('\n')
206 line = info_func_str.readline().strip('\n')
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcmd.py112 import readline
113 self.old_completer = readline.get_completer()
114 readline.set_completer(self.complete)
115 readline.parse_and_bind(self.completekey+": complete")
136 line = self.stdin.readline()
148 import readline
149 readline.set_completer(self.old_completer)
260 import readline
261 origline = readline.get_line_buffer()
264 begidx = readline.get_begidx() - stripped
[all …]
Dmimify.py56 def readline(self): member in File
59 line = self.file.readline()
76 def readline(self): member in HeaderFile
81 line = self.file.readline()
87 self.peek = self.file.readline()
136 line = hfile.readline()
165 line = ifile.readline()
196 newline = ifile.readline()
293 line = hfile.readline()
316 line = ifile.readline()
[all …]
DStringIO.py76 r = self.readline()
139 def readline(self, length=None): member in StringIO
178 line = self.readline()
184 line = self.readline()
297 print 'First line =', repr(f.readline())
299 line = f.readline()
Dmultifile.py75 def readline(self): member in MultiFile
78 line = self.fp.readline()
115 line = self.readline()
124 while self.readline(): pass
Dtokenize.py155 def tokenize(readline, tokeneater=printtoken): argument
169 tokenize_loop(readline, tokeneater)
174 def tokenize_loop(readline, tokeneater): argument
175 for token_info in generate_tokens(readline):
264 def generate_tokens(readline): argument
288 line = readline()
422 tokenize(open(sys.argv[1]).readline)
424 tokenize(sys.stdin.readline)
Duu.py106 hdr = in_file.readline()
140 s = in_file.readline()
151 s = in_file.readline()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcmd.py112 import readline
113 self.old_completer = readline.get_completer()
114 readline.set_completer(self.complete)
115 readline.parse_and_bind(self.completekey+": complete")
136 line = self.stdin.readline()
148 import readline
149 readline.set_completer(self.old_completer)
262 import readline
263 origline = readline.get_line_buffer()
266 begidx = readline.get_begidx() - stripped
[all …]
DStringIO.py76 r = self.readline()
139 def readline(self, length=None): member in StringIO
178 line = self.readline()
184 line = self.readline()
297 print 'First line =', repr(f.readline())
299 line = f.readline()
Dtokenize.py156 def tokenize(readline, tokeneater=printtoken): argument
170 tokenize_loop(readline, tokeneater)
175 def tokenize_loop(readline, tokeneater): argument
176 for token_info in generate_tokens(readline):
270 def generate_tokens(readline): argument
294 line = readline()
430 tokenize(open(sys.argv[1]).readline)
432 tokenize(sys.stdin.readline)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dmakechangelog.py77 line = f.readline()
83 line = f.readline()
94 revline = f.readline()
95 dateline = f.readline()
98 line = f.readline()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dsvneol.py66 line = f.readline()
73 f.readline()
74 line = f.readline()
78 f.readline()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
Duu_codec.py66 readline = infile.readline
71 s = readline()
79 s = readline()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
Duu_codec.py66 readline = infile.readline
71 s = readline()
79 s = readline()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dfrom.py23 line = mail.readline()
30 line = mail.readline()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
Dtokenize.py160 def tokenize(readline, tokeneater=printtoken): argument
174 tokenize_loop(readline, tokeneater)
179 def tokenize_loop(readline, tokeneater): argument
180 for token_info in generate_tokens(readline):
252 def detect_encoding(readline): argument
275 return readline()
345 def generate_tokens(readline): argument
369 line = readline()
499 if len(sys.argv) > 1: tokenize(open(sys.argv[1]).readline)
500 else: tokenize(sys.stdin.readline)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/
Dfeedparser.py73 def readline(self): member in BufferedSubFile
130 line = self.readline()
222 line = self._input.readline()
254 line = self._input.readline()
260 line = self._input.readline()
308 line = self._input.readline()
341 line = self._input.readline()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dtext_file.py161 def readline (self): member in TextFile
185 line = self.file.readline()
293 line = self.readline()

12345678