
import a11y
import speech

def onTextInserted (e):
    if e.source.role != "terminal":
        return
    speech.say ("default", e.any_data)

    
def onTextDeleted (event):
    """Called whenever text is deleted from an object.

    Arguments:
    - event: the Event
    """
    
    # Ignore text deletions from non-focused objects, unless the
    # currently focused object is the parent of the object from which
    # text was deleted
    #
    if (event.source != a11y.focusedObject) \
            and (event.source.parent != a11y.focusedObject):
        pass
    else:
        brlUpdateText (event.source)


import a11y
import speech
import default

def onTextInserted (e):
    if e.source.role != "terminal":
        return
    speech.say ("default", e.any_data)

    
def onTextDeleted (event):
    """Called whenever text is deleted from an object.

    Arguments:
    - event: the Event
    """
    
    # Ignore text deletions from non-focused objects, unless the
    # currently focused object is the parent of the object from which
    # text was deleted
    #
    if (event.source != a11y.focusedObject) \
            and (event.source.parent != a11y.focusedObject):
        pass
    else:
        default.brlUpdateText (event.source)

Call default.brlUpdateText instead of brlUpdateText (which was undefined)
Call default.brlUpdateText instead of brlUpdateText (which was undefined)

  
  import a11y
  import speech
+ import default
  
  def onTextInserted (e):
      if e.source.role != "terminal":
          return
      speech.say ("default", e.any_data)
  
      
  def onTextDeleted (event):
      """Called whenever text is deleted from an object.
  
      Arguments:
      - event: the Event
      """
      
      # Ignore text deletions from non-focused objects, unless the
      # currently focused object is the parent of the object from which
      # text was deleted
      #
      if (event.source != a11y.focusedObject) \
              and (event.source.parent != a11y.focusedObject):
          pass
      else:
-         brlUpdateText (event.source)
+         default.brlUpdateText (event.source)
  
Call default.brlUpdateText instead of brlUpdateText (which was undefined)
## Code Before:

import a11y
import speech

def onTextInserted (e):
    if e.source.role != "terminal":
        return
    speech.say ("default", e.any_data)

    
def onTextDeleted (event):
    """Called whenever text is deleted from an object.

    Arguments:
    - event: the Event
    """
    
    # Ignore text deletions from non-focused objects, unless the
    # currently focused object is the parent of the object from which
    # text was deleted
    #
    if (event.source != a11y.focusedObject) \
            and (event.source.parent != a11y.focusedObject):
        pass
    else:
        brlUpdateText (event.source)

## Instruction:
Call default.brlUpdateText instead of brlUpdateText (which was undefined)
## Code After:

import a11y
import speech
import default

def onTextInserted (e):
    if e.source.role != "terminal":
        return
    speech.say ("default", e.any_data)

    
def onTextDeleted (event):
    """Called whenever text is deleted from an object.

    Arguments:
    - event: the Event
    """
    
    # Ignore text deletions from non-focused objects, unless the
    # currently focused object is the parent of the object from which
    # text was deleted
    #
    if (event.source != a11y.focusedObject) \
            and (event.source.parent != a11y.focusedObject):
        pass
    else:
        default.brlUpdateText (event.source)
