eric6/QScintilla/Shell.py

branch
multi_processing
changeset 7802
eefe954f01e8
parent 7564
787684e6f2f3
parent 7759
51aa6c6b66f7
child 7923
91e843545d9a
diff -r 39e3db2b4936 -r eefe954f01e8 eric6/QScintilla/Shell.py
--- a/eric6/QScintilla/Shell.py	Sun Jul 05 11:11:24 2020 +0200
+++ b/eric6/QScintilla/Shell.py	Sun Oct 18 12:35:30 2020 +0200
@@ -7,14 +7,10 @@
 Module implementing a graphical Python shell.
 """
 
-
 import sys
 import re
 
-try:
-    from enum import Enum
-except ImportError:
-    from ThirdParty.enum import Enum
+from enum import Enum
 
 from PyQt5.QtCore import pyqtSignal, pyqtSlot, QFileInfo, Qt, QEvent
 from PyQt5.QtGui import QClipboard, QPalette, QFont
@@ -789,7 +785,7 @@
         """
         from .ShellHistoryDialog import ShellHistoryDialog
         dlg = ShellHistoryDialog(self.__history, self.vm, self)
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             self.__historyLists[self.clientType], idx = dlg.getHistory()
             self.__history = self.__historyLists[self.clientType]
             self.__setHistoryIndex(index=idx)

eric ide

mercurial