Lines Matching defs:file
129 for frame, file, lnum, func, lines, index in records:
130 if file:
131 file = os.path.abspath(file)
132 link = '<a href="file://%s">%s</a>' % (file, pydoc.html.escape(file))
134 file = link = '?'
146 try: return linecache.getline(file, lnum[0])
217 for frame, file, lnum, func, lines, index in records:
218 file = file and os.path.abspath(file) or '?'
230 try: return linecache.getline(file, lnum[0])
234 rows = [' %s %s' % (file, call)]
272 def __init__(self, display=1, logdir=None, context=5, file=None,
277 self.file = file or sys.stdout # place to send the output
286 self.file.write(reset())
299 self.file.write('<pre>' + doc + '</pre>\n')
301 self.file.write(doc + '\n')
303 self.file.write('<p>A problem occurred in a Python script.\n')
310 with os.fdopen(fd, 'w') as file:
311 file.write(doc)
317 self.file.write('<p>%s</p>\n' % msg)
319 self.file.write(msg + '\n')
321 self.file.flush()