| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/ |
| regextest.py | 15 # - produces output in the format <file>:<lineno>:<line>
34 lineno = 0
39 lineno = lineno + 1
41 print "%s:%s:%s" % (file, lineno, line),
|
| /external/python/cpython2/Demo/comparisons/ |
| regextest.py | 15 # - produces output in the format <file>:<lineno>:<line> 34 lineno = 0 39 lineno = lineno + 1 41 print "%s:%s:%s" % (file, lineno, line),
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
| warnings.py | 25 def _show_warning(message, category, filename, lineno, file=None, line=None):
33 file.write(formatwarning(message, category, filename, lineno, line))
40 def formatwarning(message, category, filename, lineno, line=None):
42 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message)
43 line = linecache.getline(filename, lineno) if line is None else line
49 def filterwarnings(action, message="", category=Warning, module="", lineno=0,
58 'lineno' -- an integer line number, 0 matches all warnings
69 assert isinstance(lineno, int) and lineno >= 0, \
70 "lineno must be an int >= 0" [all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
| warnings.py | 24 def _show_warning(message, category, filename, lineno, file=None, line=None):
29 file.write(formatwarning(message, category, filename, lineno, line))
36 def formatwarning(message, category, filename, lineno, line=None):
38 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message)
39 line = linecache.getline(filename, lineno) if line is None else line
45 def filterwarnings(action, message="", category=Warning, module="", lineno=0,
54 'lineno' -- an integer line number, 0 matches all warnings
65 assert isinstance(lineno, int) and lineno >= 0, \
66 "lineno must be an int >= 0" [all...] |
| /external/python/cpython2/Lib/ |
| warnings.py | 25 def _show_warning(message, category, filename, lineno, file=None, line=None): 33 file.write(formatwarning(message, category, filename, lineno, line)) 40 def formatwarning(message, category, filename, lineno, line=None): 50 s = "%s: %s: %s\n" % (lineno, category.__name__, message) 51 line = linecache.getline(filename, lineno) if line is None else line 67 def filterwarnings(action, message="", category=Warning, module="", lineno=0, 76 'lineno' -- an integer line number, 0 matches all warnings 87 assert isinstance(lineno, int) and lineno >= 0, \ 88 "lineno must be an int >= 0 [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/ |
| warnings.py | 24 def _show_warning(message, category, filename, lineno, file=None, line=None): 29 file.write(formatwarning(message, category, filename, lineno, line)) 36 def formatwarning(message, category, filename, lineno, line=None): 38 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message) 39 line = linecache.getline(filename, lineno) if line is None else line 45 def filterwarnings(action, message="", category=Warning, module="", lineno=0, 54 'lineno' -- an integer line number, 0 matches all warnings 65 assert isinstance(lineno, int) and lineno >= 0, \ 66 "lineno must be an int >= 0 [all...] |
| /prebuilts/gdb/linux-x86/lib/python2.7/ |
| warnings.py | 24 def _show_warning(message, category, filename, lineno, file=None, line=None): 29 file.write(formatwarning(message, category, filename, lineno, line)) 36 def formatwarning(message, category, filename, lineno, line=None): 38 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message) 39 line = linecache.getline(filename, lineno) if line is None else line 45 def filterwarnings(action, message="", category=Warning, module="", lineno=0, 54 'lineno' -- an integer line number, 0 matches all warnings 65 assert isinstance(lineno, int) and lineno >= 0, \ 66 "lineno must be an int >= 0 [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
| warnings.py | 24 def _show_warning(message, category, filename, lineno, file=None, line=None): 29 file.write(formatwarning(message, category, filename, lineno, line)) 36 def formatwarning(message, category, filename, lineno, line=None): 38 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message) 39 line = linecache.getline(filename, lineno) if line is None else line 45 def filterwarnings(action, message="", category=Warning, module="", lineno=0, 54 'lineno' -- an integer line number, 0 matches all warnings 65 assert isinstance(lineno, int) and lineno >= 0, \ 66 "lineno must be an int >= 0 [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
| warnings.py | 24 def _show_warning(message, category, filename, lineno, file=None, line=None): 29 file.write(formatwarning(message, category, filename, lineno, line)) 36 def formatwarning(message, category, filename, lineno, line=None): 38 s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message) 39 line = linecache.getline(filename, lineno) if line is None else line 45 def filterwarnings(action, message="", category=Warning, module="", lineno=0, 54 'lineno' -- an integer line number, 0 matches all warnings 65 assert isinstance(lineno, int) and lineno >= 0, \ 66 "lineno must be an int >= 0 [all...] |
| /external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
| ast_unittest.py | 50 node1 = ast.NodeBase(filename="hello.mojom", lineno=123) 59 # Check that |filename| and |lineno| are set properly (and are None by 62 self.assertEquals(node1.lineno, 123) 64 self.assertIsNone(node2.lineno) 75 node4 = _TestNode(123, filename="world.mojom", lineno=123) 81 node1 = _TestNode(1, filename="foo.mojom", lineno=1) 83 node1b = _TestNode(1, filename="foo.mojom", lineno=1) 84 node2 = _TestNode(2, filename="foo.mojom", lineno=2) 90 self.assertIsNone(nodelist1.lineno) 97 self.assertEquals(nodelist2.lineno, 1 [all...] |
| /external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/ |
| exceptions.py | 19 def _format_filepos(lineno, pos, filename): 21 return " at line: %d char: %d" % (lineno, pos) 23 return " in file '%s' at line: %d char: %d" % (filename, lineno, pos) 27 def __init__(self, message, source, lineno, pos, filename): 29 message + _format_filepos(lineno, pos, filename)) 30 self.lineno = lineno 36 def __init__(self, message, source, lineno, pos, filename): 38 message + _format_filepos(lineno, pos, filename)) 39 self.lineno = linen [all...] |
| /art/tools/checker/file_format/c1visualizer/ |
| parser.py | 28 def __parseC1Line(line, lineNo, state, fileName): 46 Logger.fail("Expected output group name", fileName, lineNo) 60 Logger.fail("Empty method name in output", fileName, lineNo) 72 Logger.fail("Expected method header", fileName, lineNo) 79 Logger.fail("C1visualizer line not inside a group", fileName, lineNo) 84 fnProcessLine = lambda line, lineNo: __parseC1Line(line, lineNo, state, fileName) 85 fnLineOutsideChunk = lambda line, lineNo: \ 86 Logger.fail("C1visualizer line not inside a group", fileName, lineNo)
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hotshot/ |
| log.py | 27 # (fileno, lineno) -> filename, funcname
84 def get_funcname(self, fileno, lineno):
86 return self._funcmap[(fileno, lineno)]
98 what, tdelta, fileno, lineno = self._nextitem()
103 filename, funcname = self._decode_location(fileno, lineno)
104 t = (filename, lineno, funcname)
116 return what, (filename, lineno, funcname), tdelta
123 self._funcmap[(fileno, lineno)] = (filename, tdelta)
129 self.cwd = lineno
130 self.addinfo(tdelta, lineno)
[all...] |
| /external/python/cpython2/Lib/hotshot/ |
| log.py | 27 # (fileno, lineno) -> filename, funcname 84 def get_funcname(self, fileno, lineno): 86 return self._funcmap[(fileno, lineno)] 98 what, tdelta, fileno, lineno = self._nextitem() 103 filename, funcname = self._decode_location(fileno, lineno) 104 t = (filename, lineno, funcname) 116 return what, (filename, lineno, funcname), tdelta 123 self._funcmap[(fileno, lineno)] = (filename, tdelta) 129 self.cwd = lineno 130 self.addinfo(tdelta, lineno) [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/hotshot/ |
| log.py | 27 # (fileno, lineno) -> filename, funcname 84 def get_funcname(self, fileno, lineno): 86 return self._funcmap[(fileno, lineno)] 98 what, tdelta, fileno, lineno = self._nextitem() 103 filename, funcname = self._decode_location(fileno, lineno) 104 t = (filename, lineno, funcname) 116 return what, (filename, lineno, funcname), tdelta 123 self._funcmap[(fileno, lineno)] = (filename, tdelta) 129 self.cwd = lineno 130 self.addinfo(tdelta, lineno) [all...] |
| /prebuilts/gdb/linux-x86/lib/python2.7/hotshot/ |
| log.py | 27 # (fileno, lineno) -> filename, funcname 84 def get_funcname(self, fileno, lineno): 86 return self._funcmap[(fileno, lineno)] 98 what, tdelta, fileno, lineno = self._nextitem() 103 filename, funcname = self._decode_location(fileno, lineno) 104 t = (filename, lineno, funcname) 116 return what, (filename, lineno, funcname), tdelta 123 self._funcmap[(fileno, lineno)] = (filename, tdelta) 129 self.cwd = lineno 130 self.addinfo(tdelta, lineno) [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/hotshot/ |
| log.py | 27 # (fileno, lineno) -> filename, funcname 84 def get_funcname(self, fileno, lineno): 86 return self._funcmap[(fileno, lineno)] 98 what, tdelta, fileno, lineno = self._nextitem() 103 filename, funcname = self._decode_location(fileno, lineno) 104 t = (filename, lineno, funcname) 116 return what, (filename, lineno, funcname), tdelta 123 self._funcmap[(fileno, lineno)] = (filename, tdelta) 129 self.cwd = lineno 130 self.addinfo(tdelta, lineno) [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/hotshot/ |
| log.py | 27 # (fileno, lineno) -> filename, funcname 84 def get_funcname(self, fileno, lineno): 86 return self._funcmap[(fileno, lineno)] 98 what, tdelta, fileno, lineno = self._nextitem() 103 filename, funcname = self._decode_location(fileno, lineno) 104 t = (filename, lineno, funcname) 116 return what, (filename, lineno, funcname), tdelta 123 self._funcmap[(fileno, lineno)] = (filename, tdelta) 129 self.cwd = lineno 130 self.addinfo(tdelta, lineno) [all...] |
| /external/ltp/include/old/ |
| safe_macros.h | 163 static inline void *safe_mmap(const char *file, const int lineno, 173 file, lineno, addr, length, prot, flags, fd, 183 static inline int safe_ftruncate(const char *file, const int lineno, 192 file, lineno, fd, (long)length); 200 static inline int safe_truncate(const char *file, const int lineno, 209 file, lineno, path, (long)length); 217 static inline int safe_stat(const char *file, const int lineno, 226 "%s:%d: stat(%s,%p) failed", file, lineno, path, buf); 234 static inline int safe_fstat(const char *file, const int lineno, 243 "%s:%d: fstat(%d,%p) failed", file, lineno, fd, buf) [all...] |
| ltp_priv.h | 55 void tst_vbrk_(const char *file, const int lineno, int ttype, 58 void tst_brk_(const char *file, const int lineno, int ttype, 61 void tst_vres_(const char *file, const int lineno, int ttype, 64 void tst_res_(const char *file, const int lineno, int ttype, 68 #define NO_NEWLIB_ASSERT(file, lineno) \ 70 tst_brk_(file, lineno, TBROK, \
|
| /bionic/linker/ |
| linker_config.cpp | 112 size_t lineno() const { function in class:ConfigParser 147 PropertyValue(std::string&& value, size_t lineno) 148 : value_(value), lineno_(lineno) {} 156 // lineno isn't updated as we might have cases like this: 162 size_t lineno() const { function in class:PropertyValue 172 size_t lineno, 175 async_safe_format_buffer(buf, sizeof(buf), "%s:%zu: error: %s", file, lineno, msg.c_str()); 206 cp.lineno(), 220 cp.lineno(), 233 cp.lineno()); 480 size_t lineno = 0; local [all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
| texcheck.py | 21 -s lineno: Start at lineno (useful for skipping complex sections).
81 -s lineno: linenumber to start scan (default is 1).
115 lineno = 0
117 for lineno, line in izip(count(startline), islice(source, startline-1, None)):
123 print lineno, '|', begend, name, punct,
125 openers.append((lineno, name))
127 openers.append((lineno, punct))
129 matchclose(lineno, name, openers, pairmap)
131 matchclose(lineno, punct, openers, pairmap) [all...] |
| /external/python/cpython2/Tools/scripts/ |
| texcheck.py | 21 -s lineno: Start at lineno (useful for skipping complex sections). 81 -s lineno: linenumber to start scan (default is 1). 115 lineno = 0 117 for lineno, line in izip(count(startline), islice(source, startline-1, None)): 123 print lineno, '|', begend, name, punct, 125 openers.append((lineno, name)) 127 openers.append((lineno, punct)) 129 matchclose(lineno, name, openers, pairmap) 131 matchclose(lineno, punct, openers, pairmap [all...] |
| /device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/ |
| VfrFormPkg.h | 160 IN UINT32 LineNo,
238 VOID IfrRecordOutput (IN FILE *, IN UINT32 LineNo);
244 VOID IfrCreateDefaultRecord (IN UINT8 Size,IN UINT16 DefaultId,IN UINT8 Type,IN UINT32 LineNo,IN EFI_IFR_TYPE_VALUE Value);
277 inline VOID SetLineNo (IN UINT32 LineNo) {
278 mLineNo = LineNo;
1064 IN UINT32 LineNo
1067 SetLineNo (LineNo);
1084 IN UINT32 LineNo
1087 SetLineNo (LineNo);
[all...] |
| /external/protobuf/protoc-artifacts/ |
| build-protoc.sh | 33 # Usage: assertEq VAL1 VAL2 $LINENO 36 lineno=$3 37 if [ -z "$lineno" ]; then 38 echo "lineno not given" 44 echo "File \"$0\", line $lineno" # Give name of file and line number. 60 assertEq $format "elf32-i386" $LINENO 62 assertEq $format "elf64-x86-64" $LINENO 69 assertEq $format "pei-i386" $LINENO 71 assertEq $format "pei-x86-64" $LINENO 80 assertEq $format "i386" $LINENO [all...] |