def update_var_view(self, locals=None, globals=None, focus_index=None):
    if (locals is None):
        locals = self.debugger.curframe.f_locals
    if (globals is None):
        globals = self.debugger.curframe.f_globals
    from pudb.var_view import make_var_view
    self.locals[:] = make_var_view(self.get_frame_var_info(read_only=True), locals, globals)
    if (focus_index is not None):
        try:
            self.var_list._w.set_focus(focus_index)
        except IndexError:
            pass
def update_var_view(self, locals=None, globals=None, focus_index=None):
    if (locals is None):
        locals = self.debugger.curframe.f_locals
    if (globals is None):
        globals = self.debugger.curframe.f_globals
    from pudb.var_view import make_var_view
    self.locals[:] = make_var_view(self.get_frame_var_info(read_only=True), locals, globals)
    if (focus_index is not None):
        try:
            self.var_list._w.set_focus(focus_index)
        except IndexError:
            pass