QScintilla/Lexers/__init__.py

changeset 97
c4086afea02b
parent 40
c2e5472b112c
child 428
58405c24aa09
child 792
a13346916170
--- 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:

eric ide

mercurial