Commits

Yuya Nishihara committed 601faee

qscilib: eliminate override of non-virtual read() method

  • Participants
  • Parent commits 20f3d03
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/qscilib.py

             self.SendScintilla(QsciScintilla.SCI_SETVIRTUALSPACEOPTIONS,
                                QsciScintilla.SCVS_RECTANGULARSELECTION)
 
-    def read(self, f):
-        result = super(Scintilla, self).read(f)
-        self.setDefaultEolMode()
-        return result
-
     def contextMenuEvent(self, event):
         menu = self.createEditorContextMenu()
         menu.exec_(event.globalPos())
                             _('An error occurred while reading the file.'),
                             f.errorString(), parent=editor)
         return False
+    editor.setDefaultEolMode()
     editor.setModified(False)
     return True