--- a/QScintilla/Lexers/__init__.py Sun Jan 31 17:11:22 2010 +0000 +++ b/QScintilla/Lexers/__init__.py Sun Jan 31 18:31:28 2010 +0000 @@ -8,9 +8,6 @@ """ from PyQt4.QtGui import QApplication -from PyQt4.Qsci import QSCINTILLA_VERSION_STR - -from QScintilla.QsciScintillaCompat import QSCINTILLA_VERSION import Preferences @@ -43,6 +40,7 @@ wildcard patterns to be associated with the lexer) @exception KeyError raised when the given name is already in use """ + global LexerRegistry if name in LexerRegistry: raise KeyError('Lexer "%s" already registered.' % name) else: