QScintilla/QsciScintillaCompat.py

changeset 3070
04e342ebf697
parent 3069
8a9579bbf583
child 3071
83d066710d60
--- a/QScintilla/QsciScintillaCompat.py	Sat Nov 09 17:46:01 2013 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Sat Nov 09 18:14:44 2013 +0100
@@ -9,9 +9,8 @@
 
 from PyQt4.QtCore import pyqtSignal, Qt
 from PyQt4.QtGui import QPalette, QColor, QApplication
-from PyQt4.Qsci import QsciScintilla, \
-    QSCINTILLA_VERSION as QSCIQSCINTILLA_VERSION, QSCINTILLA_VERSION_STR, \
-    QsciScintillaBase
+from PyQt4.Qsci import QsciScintillaBase, QsciScintilla, \
+    QSCINTILLA_VERSION as QSCIQSCINTILLA_VERSION
 
 ###############################################################################
 
@@ -20,15 +19,9 @@
     """
     Module function to return the QScintilla version.
     
-    If the installed QScintilla is a snapshot version, then assume it is
-    of the latest release and return a version number of 0x99999.
-    
     @return QScintilla version (integer)
     """
-    if '-snapshot-' in QSCINTILLA_VERSION_STR:
-        return 0x99999
-    else:
-        return QSCIQSCINTILLA_VERSION
+    return QSCIQSCINTILLA_VERSION
     
 ###############################################################################
 

eric ide

mercurial