def get_lines(self, debugger_ui):
    from pudb.source_view import SourceLine, format_source
    if (self.file_name == '<string>'):
        return [SourceLine(debugger_ui, self.file_name)]
    breakpoints = debugger_ui.debugger.get_file_breaks(self.file_name)[:]
    breakpoints = [lineno for lineno in breakpoints if any((bp.enabled for bp in debugger_ui.debugger.get_breaks(self.file_name, lineno)))]
    breakpoints += [i for (f, i) in debugger_ui.debugger.set_traces if ((f == self.file_name) and debugger_ui.debugger.set_traces[(f, i)])]
    try:
        from linecache import getlines
        lines = getlines(self.file_name)
        return format_source(debugger_ui, list(decode_lines(lines)), set(breakpoints))
    except Exception:
        from pudb.lowlevel import format_exception
        debugger_ui.message("Could not load source file '{}':\n\n{}".format(self.file_name, ''.join(format_exception(sys.exc_info()))), title='Source Code Load Error')
        return [SourceLine(debugger_ui, ("Error while loading '%s'." % self.file_name))]
def get_lines(self, debugger_ui):
    from pudb.source_view import SourceLine, format_source
    if (self.file_name == '<string>'):
        return [SourceLine(debugger_ui, self.file_name)]
    breakpoints = debugger_ui.debugger.get_file_breaks(self.file_name)[:]
    breakpoints = [lineno for lineno in breakpoints if any((bp.enabled for bp in debugger_ui.debugger.get_breaks(self.file_name, lineno)))]
    breakpoints += [i for (f, i) in debugger_ui.debugger.set_traces if ((f == self.file_name) and debugger_ui.debugger.set_traces[(f, i)])]
    try:
        from linecache import getlines
        lines = getlines(self.file_name)
        return format_source(debugger_ui, list(decode_lines(lines)), set(breakpoints))
    except Exception:
        from pudb.lowlevel import format_exception
        debugger_ui.message("Could not load source file '{}':\n\n{}".format(self.file_name, .join(format_exception(sys.exc_info()))), title='Source Code Load Error')
        return [SourceLine(debugger_ui, ("Error while loading '%s'." % self.file_name))]