/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...] |
/external/ltp/testcases/kernel/sched/clisrv/ |
readline.c | 20 * readline.c 28 int readline(fd, ptr, maxlen) function 36 printf("readline: fd = %d\n", fd);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/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 @unittest.skipIf(not hasattr(readline, 'clear_history'), 20 readline.clear_history() 22 readline.add_history("first line") 23 readline.add_history("second line") 25 self.assertEqual(readline.get_history_item(0), None [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/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 @unittest.skipIf(not hasattr(readline, 'clear_history'), 20 readline.clear_history() 22 readline.add_history("first line") 23 readline.add_history("second line") 25 self.assertEqual(readline.get_history_item(0), None [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/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 @unittest.skipIf(not hasattr(readline, 'clear_history'), 20 readline.clear_history() 22 readline.add_history("first line") 23 readline.add_history("second line") 25 self.assertEqual(readline.get_history_item(0), None [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/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 @unittest.skipIf(not hasattr(readline, 'clear_history'), 20 readline.clear_history() 22 readline.add_history("first line") 23 readline.add_history("second line") 25 self.assertEqual(readline.get_history_item(0), None [all...] |
/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/antlr-3.4/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...] |
/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()
|
/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
|
/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/syslinux/gpxe/src/hci/ |
readline.c | 27 #include <readline/readline.h> 31 * Minimal readline 86 char * readline ( const char *prompt ) { function
|
/prebuilts/gdb/darwin-x86/lib/python2.7/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...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
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
|
/prebuilts/gdb/linux-x86/lib/python2.7/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...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
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
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/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...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
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
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/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...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
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
|
/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()
|