/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
fileinput.py | 92 mode="r", openhook=None):
102 _state = FileInput(files, inplace, backup, bufsize, mode, openhook)
184 """FileInput([files[, inplace[, backup[, bufsize[, mode[, openhook]]]]]])
197 mode="r", openhook=None):
226 if inplace and openhook:
228 elif openhook and not hasattr(openhook, '__call__'):
229 raise ValueError("FileInput openhook must be callable")
230 self._openhook = openhook
395 def openhook(filename, mode): function in function:hook_encoded [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
fileinput.py | 92 mode="r", openhook=None):
93 """input([files[, inplace[, backup[, mode[, openhook]]]]])
103 _state = FileInput(files, inplace, backup, bufsize, mode, openhook)
185 """class FileInput([files[, inplace[, backup[, mode[, openhook]]]]])
198 mode="r", openhook=None):
227 if inplace and openhook:
229 elif openhook and not hasattr(openhook, '__call__'):
230 raise ValueError("FileInput openhook must be callable")
231 self._openhook = openhook
392 def openhook(filename, mode): function in function:hook_encoded [all...] |
/external/python/cpython2/Lib/ |
fileinput.py | 86 mode="r", openhook=None): 96 _state = FileInput(files, inplace, backup, bufsize, mode, openhook) 178 """FileInput([files[, inplace[, backup[, bufsize[, mode[, openhook]]]]]]) 191 mode="r", openhook=None): 217 if inplace and openhook: 219 elif openhook and not hasattr(openhook, '__call__'): 220 raise ValueError("FileInput openhook must be callable") 221 self._openhook = openhook 383 def openhook(filename, mode) function in function:hook_encoded [all...] |
/external/python/cpython2/Lib/test/ |
test_fileinput.py | 43 def openhook(self, filename, mode): member in class:LineReader 238 # cannot use openhook and inplace mode 239 fi = FileInput(inplace=1, openhook=lambda f,m: None) 241 "and openhook arguments are given") 245 fi = FileInput(openhook=1) 246 self.fail("FileInput should check openhook for being callable") 252 fi = FileInput(files=t1, openhook=hook_encoded("utf-7")) 267 fi = FileInput(files=TESTFN, openhook=hook_encoded('ascii')) 280 fi = FileInput(files=['line1\nline2', 'line3\n'], openhook=src.openhook) [all...] |
/external/python/cpython3/Lib/ |
fileinput.py | 84 mode="r", openhook=None): 94 _state = FileInput(files, inplace, backup, bufsize, mode, openhook) 176 """FileInput([files[, inplace[, backup[, bufsize, [, mode[, openhook]]]]]]) 189 mode="r", openhook=None): 223 if openhook: 226 if not callable(openhook): 227 raise ValueError("FileInput openhook must be callable") 228 self._openhook = openhook 404 def openhook(filename, mode): function in function:hook_encoded 406 return openhook [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
fileinput.py | 92 mode="r", openhook=None): 93 """input([files[, inplace[, backup[, mode[, openhook]]]]]) 103 _state = FileInput(files, inplace, backup, bufsize, mode, openhook) 185 """class FileInput([files[, inplace[, backup[, mode[, openhook]]]]]) 198 mode="r", openhook=None): 227 if inplace and openhook: 229 elif openhook and not hasattr(openhook, '__call__'): 230 raise ValueError("FileInput openhook must be callable") 231 self._openhook = openhook 392 def openhook(filename, mode): function in function:hook_encoded [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
fileinput.py | 92 mode="r", openhook=None): 93 """input([files[, inplace[, backup[, mode[, openhook]]]]]) 103 _state = FileInput(files, inplace, backup, bufsize, mode, openhook) 185 """class FileInput([files[, inplace[, backup[, mode[, openhook]]]]]) 198 mode="r", openhook=None): 227 if inplace and openhook: 229 elif openhook and not hasattr(openhook, '__call__'): 230 raise ValueError("FileInput openhook must be callable") 231 self._openhook = openhook 392 def openhook(filename, mode): function in function:hook_encoded [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
fileinput.py | 92 mode="r", openhook=None): 93 """input([files[, inplace[, backup[, mode[, openhook]]]]]) 103 _state = FileInput(files, inplace, backup, bufsize, mode, openhook) 185 """class FileInput([files[, inplace[, backup[, mode[, openhook]]]]]) 198 mode="r", openhook=None): 227 if inplace and openhook: 229 elif openhook and not hasattr(openhook, '__call__'): 230 raise ValueError("FileInput openhook must be callable") 231 self._openhook = openhook 392 def openhook(filename, mode): function in function:hook_encoded [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
fileinput.py | 92 mode="r", openhook=None): 93 """input([files[, inplace[, backup[, mode[, openhook]]]]]) 103 _state = FileInput(files, inplace, backup, bufsize, mode, openhook) 185 """class FileInput([files[, inplace[, backup[, mode[, openhook]]]]]) 198 mode="r", openhook=None): 227 if inplace and openhook: 229 elif openhook and not hasattr(openhook, '__call__'): 230 raise ValueError("FileInput openhook must be callable") 231 self._openhook = openhook 392 def openhook(filename, mode): function in function:hook_encoded [all...] |
/external/python/cpython3/Lib/test/ |
test_fileinput.py | 62 def openhook(self, filename, mode): member in class:LineReader 297 # cannot use openhook and inplace mode 298 fi = FileInput(inplace=1, openhook=lambda f, m: None) 300 "and openhook arguments are given") 304 fi = FileInput(openhook=1) 305 self.fail("FileInput should check openhook for being callable") 319 with FileInput([t], openhook=custom_open_hook) as fi: 321 self.assertTrue(custom_open_hook.invoked, "openhook not invoked") 333 openhook=hook_encoded('ascii')) as fi: 504 openhook=src.openhook) as fi [all...] |