human
Solve the following python programming problem given the following code:
def toolkit_object(name) : 
    ' Return the toolkit specific object with the given name.

    Parameters
    ----------
    name : str
        The name consists of the relative module path and the object name
        separated by a colon.
    ' 
    (mname, oname) = name.split (':') 
    be_mname = (_toolkit_backend + mname) 
    class Unimplemented (object) : 
        " An unimplemented toolkit object

        This is returned if an object isn't implemented by the selected
        toolkit.  It raises an exception if it is ever instantiated.
        " 
        def __init__(self, * args, **kwargs) : 
            raise NotImplementedError (("the %s pyface backend doesn't implement %s" % (ETSConfig.toolkit, oname))) 
be_obj = Unimplemented 
    try : 
        __import__ (be_mname) 
        try : 
            be_obj = getattr (sys.modules [be_mname], oname) 
except AttributeError : 
            pass 
except ImportError as exc : 
        if all (((part not in exc.args [0]) for part in mname.split ('.'))) : 
            raise 
if ('ETS_DEBUG' in os.environ) : 
            import traceback 
            frames = traceback.extract_tb (sys.exc_traceback) 
            (filename, lineno, function, text) = be_mname [(- 1)] 
            if (not (_toolkit_backend in filename)) : 
                raise 
return be_obj 

    
    

    Fix the buggy line: (filename, lineno, function, text) = be_mname [(- 1)]
assistant
#Here is Python code to fix the buggy line: (filename, lineno, function, text) = be_mname [(- 1)]
.

(filename, lineno, function, text) = frames [(- 1)]