def triggerCharacters(self):
        """Trigger characters for smart indentation"""
        return self._smartIndenter.TRIGGER_CHARACTERS
def lock_temp(self, key):
    self.lock(key)
    try:
      yield
    finally:
      self.unlock(key)