def make_frame_ui(frame_lineno):
    (frame, lineno) = frame_lineno
    code = frame.f_code
    class_name = None
    if (code.co_argcount and (code.co_varnames[0] == 'self')):
        try:
            class_name = frame.f_locals['self'].__class__.__name__
        except Exception:
            from pudb.lowlevel import ui_log
            message = 'Failed to determine class name'
            ui_log.exception(message)
            class_name = ('!! %s !!' % message)
    return StackFrame((frame is self.debugger.curframe), code.co_name, class_name, self._format_fname(code.co_filename), lineno)
def make_frame_ui(frame_lineno):
    (frame, lineno) = frame_lineno
    code = frame.f_code
    class_name = None
    if (code.co_argcount and (code.co_varnames[0] == 'self')):
        try:
            class_name = frame.f_locals['self'].__class__.__name__
        except Exception:
            from pudb.lowlevel import ui_log
            message = 'Failed to determine class name'
            ui_log.exception(message)
            class_name = ('!! %s !!' % message)
    return StackFrame((frame is self.debugger.curframe), code.co_name, class_name, self._format_fname(code.co_filename), lineno)