code: def reverseCommit(self):
          
          # Put the document into the 'before' state.
          self.baseClass.setText(self.textBefore)
          self.qteWidget.SCISetStylingEx(0, 0, self.styleBefore)
docs: Put the document into the 'before' state.