Home | History | Annotate | Download | only in python2.7

Lines Matching defs:file

119     for frame, file, lnum, func, lines, index in records:
120 if file:
121 file = os.path.abspath(file)
122 link = '<a href="file://%s">%s</a>' % (file, pydoc.html.escape(file))
124 file = link = '?'
135 try: return linecache.getline(file, lnum[0])
207 for frame, file, lnum, func, lines, index in records:
208 file = file and os.path.abspath(file) or '?'
219 try: return linecache.getline(file, lnum[0])
223 rows = [' %s %s' % (file, call)]
262 def __init__(self, display=1, logdir=None, context=5, file=None,
267 self.file = file or sys.stdout # place to send the output
276 self.file.write(reset())
289 self.file.write('<pre>' + doc + '</pre>\n')
291 self.file.write(doc + '\n')
293 self.file.write('<p>A problem occurred in a Python script.\n')
300 file = os.fdopen(fd, 'w')
301 file.write(doc)
302 file.close()
308 self.file.write('<p>%s</p>\n' % msg)
310 self.file.write(msg + '\n')
312 self.file.flush()