Lines Matching refs:lines
444 lines = self.source.split("\n")
445 return "\n".join(lines[top-1:bottom]) + ("\n" if bottom else "")
712 # where the second and third lines are _not_ indented.
726 # the arguments are on two lines and _not_ indented and
732 # the body is on two lines, following the argument list and
792 lines = ["x=1"]
793 co = compile(lines[0], "_dynamically_created_file", "exec")
796 linecache.cache[co.co_filename] = (1, None, lines, co.co_filename)
798 self.assertEqual(inspect.findsource(co), (lines,0))
799 self.assertEqual(inspect.getsource(co), lines[0])
4444 lines = out.decode().splitlines()
4446 self.assertEqual(lines[:-1], inspect.getsource(module).splitlines())
4461 lines = out.decode().splitlines()
4463 self.assertEqual(lines[:-1],
4470 lines = err.decode().splitlines()
4471 self.assertEqual(lines, ["Can't get info for builtin modules."])