eric6/QScintilla/Lexers/__init__.py

changeset 7635
0cdead130a81
parent 7533
88261c96484b
child 7637
c878e8255972
--- a/eric6/QScintilla/Lexers/__init__.py	Sat Jun 20 17:36:20 2020 +0200
+++ b/eric6/QScintilla/Lexers/__init__.py	Sun Jun 21 18:26:12 2020 +0200
@@ -134,8 +134,6 @@
         "Protocol": [QCoreApplication.translate('Lexers',
                                                 "Protocol (protobuf)"),
                      'dummy.proto', "protobuf"],
-        "Python2": [QCoreApplication.translate('Lexers', "Python2"),
-                    'dummy.py', "lexerPython"],
         "Python3": [QCoreApplication.translate('Lexers', "Python3"),
                     'dummy.py', "lexerPython3"],
         "MicroPython": [QCoreApplication.translate('Lexers', "MicroPython"),
@@ -231,8 +229,7 @@
     """
     if not pyname:
         try:
-            if language in ["Python", "Python2", "Python3", "Cython",
-                            "MicroPython"]:
+            if language in ["Python", "Python3", "Cython", "MicroPython"]:
                 from .LexerPython import LexerPython
                 return LexerPython(language, parent)
             elif language == "C++":
@@ -562,15 +559,9 @@
     saveFileFiltersList = [
         QCoreApplication.translate(
             'Lexers',
-            "Python2 Files (*.py2)"),
-        QCoreApplication.translate(
-            'Lexers',
             "Python3 Files (*.py)"),
         QCoreApplication.translate(
             'Lexers',
-            "Python2 GUI Files (*.pyw2)"),
-        QCoreApplication.translate(
-            'Lexers',
             "Python3 GUI Files (*.pyw)"),
         QCoreApplication.translate(
             'Lexers',

eric ide

mercurial