--- a/QScintilla/Lexers/__init__.py Mon Dec 27 19:49:16 2010 +0100 +++ b/QScintilla/Lexers/__init__.py Fri Dec 31 15:19:02 2010 +0100 @@ -117,7 +117,7 @@ """ if not pyname: try: - if language in ["Python", "Python3"]: + if language in ["Python", "Python2", "Python3"]: from .LexerPython import LexerPython return LexerPython(parent) elif language == "C++": @@ -349,11 +349,11 @@ """ saveFileFiltersList = [ QApplication.translate('Lexers', - "Python Files (*.py2)"), + "Python2 Files (*.py2)"), QApplication.translate('Lexers', "Python3 Files (*.py)"), QApplication.translate('Lexers', - "Python GUI Files (*.pyw2)"), + "Python2 GUI Files (*.pyw2)"), QApplication.translate('Lexers', "Python3 GUI Files (*.pyw)"), QApplication.translate('Lexers', @@ -531,6 +531,10 @@ "*.rc" : "Properties", '*.py' : "Python", '*.pyw' : "Python", + '*.py2' : "Python", + '*.pyw2' : "Python", + '*.py3' : "Python", + '*.pyw3' : "Python", '*.pyx' : "Python", '*.ptl' : "Python", '*.rb' : "Ruby",