Searched refs:filelineno (Results 1 – 5 of 5) sorted by relevance
/third_party/jerryscript/tools/ |
D | gen-doctest.py | 69 … self._warning('incorrect parameter list for test (key="value", ...)', fileinput.filelineno()) 81 return decl, fileinput.filelineno() 90 … return ['#line %d "%s"\n' % (fileinput.filelineno() + 1, self._infile)], fileinput.filelineno()
|
D | gen-magic-strings.py | 138 lnum = fileinput.filelineno()
|
/third_party/python/Lib/ |
D | fileinput.py | 134 def filelineno(): function 142 return _state.filelineno() 397 def filelineno(self): member in FileInput 454 print("%d: %s[%d]%s %s" % (lineno(), filename(), filelineno(), 456 print("%d: %s[%d]" % (lineno(), filename(), filelineno()))
|
/third_party/python/Lib/test/ |
D | test_fileinput.py | 117 self.assertEqual(fi.filelineno(), 6) 168 self.assertEqual(int(m.group(1)), fi.filelineno()) 191 self.assertEqual(fi.filelineno(), 1) 197 self.assertEqual(fi.filelineno(), 0) 207 self.assertEqual(fi.filelineno(), 3) 353 self.assertEqual(fi.filelineno(), 3) 525 self.assertEqual(fi.filelineno(), 1) 569 def filelineno(self): member in MockFileInput 778 fileinput.filelineno() 791 retval = fileinput.filelineno()
|
/third_party/python/Doc/library/ |
D | fileinput.rst | 107 .. function:: filelineno() 147 :meth:`fileno`, :meth:`lineno`, :meth:`filelineno`, :meth:`isfirstline`,
|