HomeSort by relevance Sort by last modified time
    Searched defs:readline (Results 1 - 25 of 123) sorted by null

1 2 3 4 5

  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_readline.py 2 Very minimal unittests for parts of the readline module.
5 the "real" readline have the same interface for history manipulation. That's
11 # Skip tests if there is no readline module
12 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")
    [all...]
test_doctest.py 148 def readline(self): member in class:_FakeInput
    [all...]
  /external/ltp/testcases/kernel/sched/clisrv/
readline.c 20 * readline.c
28 int readline(int fd, char *ptr, int maxlen) function
33 printf("readline: fd = %d\n", fd);
  /external/python/cpython2/Lib/test/
test_readline.py 2 Very minimal unittests for parts of the readline module.
9 # Skip tests if there is no readline module
10 readline = import_module('readline') variable
14 the "real" readline have the same interface for history manipulation.
18 @unittest.skipUnless(hasattr(readline, "clear_history"),
22 readline.clear_history()
24 readline.add_history("first line")
25 readline.add_history("second line")
27 self.assertEqual(readline.get_history_item(0), None
    [all...]
  /external/antlr/runtime/Ruby/lib/antlr3/streams/
interactive.rb 9 uses Readline (if available) or standard IO#gets to fetch data on demand.
33 @readline = block or raise( ArgumentError, "no line-reading block was provided" )
37 def readline method in class:ANTLR3.InteractiveStringStream
40 if line = @readline.call
69 @readline = block or raise( ArgumentError, "no line-reading block was provided" )
73 def readline method in class:ANTLR3.InteractiveStringStream
76 if line = @readline.call
88 private :readline
93 readline
106 elsif readline
    [all...]
  /external/bcc/src/lua/bcc/
tracerpipe.lua 34 function TracerPipe:readline()
40 local line = self:readline()
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
text_file.py 33 something that provides 'readline()' and 'close()' methods). It is
39 'readline()':
64 semantics of 'readline()' must differ from those of the builtin file
65 object's 'readline()' method! In particular, 'readline()' returns
82 the values returned by 'readline()'."""
161 def readline (self): member in class:TextFile
167 'warn()' after 'readline()' emits a warning about the physical
185 line = self.file.readline()
284 # readline ()
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
multifile.py 1 """A readline()-style interface to the parts of a multipart message.
4 an ordinary file, as long as you use fp.readline(). Allows recursive
75 def readline(self): member in class:MultiFile
78 line = self.fp.readline()
84 raise Error, 'sudden EOF in MultiFile.readline()'
109 raise Error,'Missing endmarker in MultiFile.readline()'
115 line = self.readline()
124 while self.readline(): pass
StringIO.py 14 buf = f.readline() # read until end of line ('\n') or EOF
15 list = f.readlines()# list of f.readline() results until EOF
76 r = self.readline()
139 def readline(self, length=None): member in class:StringIO
169 """Read until EOF using readline() and return a list containing the
178 line = self.readline()
184 line = self.readline()
297 print 'First line =', repr(f.readline())
299 line = f.readline()
fileinput.py 51 readline() method which returns the next input line, and a
54 access and readline() cannot be mixed.
70 readline(). A new keyword argument, bufsize=N, is present on the
191 In addition it has a readline() method which returns the next
194 sequential order; random access and readline() cannot be mixed.
253 line = self.readline()
292 def readline(self): member in class:FileInput
351 return self.readline()
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
fixdiv.py 189 line = f.readline()
217 g = tokenize.generate_tokens(f.readline)
325 line = self.fp.readline()
330 def readline(self): member in class:FileContext
  /external/python/cpython2/Lib/distutils/
text_file.py 33 something that provides 'readline()' and 'close()' methods). It is
39 'readline()':
64 semantics of 'readline()' must differ from those of the builtin file
65 object's 'readline()' method! In particular, 'readline()' returns
82 the values returned by 'readline()'."""
161 def readline (self): member in class:TextFile
167 'warn()' after 'readline()' emits a warning about the physical
185 line = self.file.readline()
284 # readline ()
    [all...]
  /external/python/cpython2/Lib/
multifile.py 1 """A readline()-style interface to the parts of a multipart message.
4 an ordinary file, as long as you use fp.readline(). Allows recursive
75 def readline(self): member in class:MultiFile
78 line = self.fp.readline()
84 raise Error, 'sudden EOF in MultiFile.readline()'
109 raise Error,'Missing endmarker in MultiFile.readline()'
115 line = self.readline()
124 while self.readline(): pass
StringIO.py 14 buf = f.readline() # read until end of line ('\n') or EOF
15 list = f.readlines()# list of f.readline() results until EOF
76 r = self.readline()
139 def readline(self, length=None): member in class:StringIO
169 """Read until EOF using readline() and return a list containing the
178 line = self.readline()
184 line = self.readline()
297 print 'First line =', repr(f.readline())
299 line = f.readline()
fileinput.py 51 readline() method which returns the next input line, and a
54 access and readline() cannot be mixed.
184 In addition it has a readline() method which returns the next
187 sequential order; random access and readline() cannot be mixed.
284 def readline(self): member in class:FileInput
341 self._readline = self._file.readline # hide FileInput._readline
  /external/python/cpython2/Tools/scripts/
fixdiv.py 189 line = f.readline()
217 g = tokenize.generate_tokens(f.readline)
325 line = self.fp.readline()
330 def readline(self): member in class:FileContext
  /external/python/cpython3/Lib/distutils/
text_file.py 30 something that provides 'readline()' and 'close()' methods). It is
36 'readline()':
63 semantics of 'readline()' must differ from those of the builtin file
64 object's 'readline()' method! In particular, 'readline()' returns
82 the values returned by 'readline()'."""
152 def readline(self): member in class:TextFile
158 'warn()' after 'readline()' emits a warning about the physical
175 line = self.file.readline()
277 line = self.readline()
    [all...]
  /external/python/cpython3/Lib/test/
test_readline.py 2 Very minimal unittests for parts of the readline module.
16 # Skip tests if there is no readline module
17 readline = import_module('readline') variable
19 if hasattr(readline, "_READLINE_LIBRARY_VERSION"):
20 is_editline = ("EditLine wrapper" in readline._READLINE_LIBRARY_VERSION)
22 is_editline = (readline.__doc__ and "libedit" in readline.__doc__)
29 if hasattr(readline, "_READLINE_VERSION"):
30 print(f"readline version: {readline._READLINE_VERSION:#x}"
    [all...]
  /external/python/cpython3/Tools/scripts/
fixdiv.py 189 line = f.readline()
217 g = tokenize.generate_tokens(f.readline)
325 line = self.fp.readline()
330 def readline(self): member in class:FileContext
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
StringIO.py 14 buf = f.readline() # read until end of line ('\n') or EOF
15 list = f.readlines()# list of f.readline() results until EOF
76 r = self.readline()
139 def readline(self, length=None): member in class:StringIO
169 """Read until EOF using readline() and return a list containing the
178 line = self.readline()
184 line = self.readline()
297 print 'First line =', repr(f.readline())
299 line = f.readline()
fileinput.py 51 readline() method which returns the next input line, and a
54 access and readline() cannot be mixed.
70 readline(). A new keyword argument, bufsize=N, is present on the
190 In addition it has a readline() method which returns the next
193 sequential order; random access and readline() cannot be mixed.
254 line = self.readline()
295 def readline(self): member in class:FileInput
354 return self.readline()
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/framer/
example.py 25 spam = an_input_stream.readline()
70 def readline(self): member in class:cStringIO.InputType
  /external/mesa3d/bin/
perf-annotate-jit.py 64 def readline(self): member in class:LineParser
65 line = self._file.readline()
80 self.readline()
107 while stream.readline() != desiredFunction + ':\n':
111 line = stream.readline().strip()
116 line = stream.readline().strip()
138 def readline(self): member in class:PerfParser
139 # Override LineParser.readline to ignore comment lines
141 LineParser.readline(self)
147 self.readline()
    [all...]
  /external/python/cpython2/Tools/framer/
example.py 25 spam = an_input_stream.readline()
70 def readline(self): member in class:cStringIO.InputType
  /external/python/cpython2/Lib/idlelib/idle_test/
test_io.py 37 def readline(self): member in class:MockShell
72 self.assertRaises(IOError, f.readline, 0)
209 self.assertEqual(f.readline(), 'one\n')
210 self.assertEqual(f.readline(-1), 'two\n')
211 self.assertEqual(f.readline(None), 'three\n')
213 self.assertEqual(f.readline(), 'one\n')
214 self.assertEqual(f.readline(), 'two\n')
216 self.assertEqual(f.readline(), 'one')
217 self.assertEqual(f.readline(), 'two')
219 self.assertEqual(f.readline(2), 'on'
    [all...]

Completed in 1196 milliseconds

1 2 3 4 5