Utilities/__init__.py

changeset 97
c4086afea02b
parent 69
2e78b0aab87e
child 114
f6e7cec11168
--- a/Utilities/__init__.py	Sun Jan 31 17:11:22 2010 +0000
+++ b/Utilities/__init__.py	Sun Jan 31 18:31:28 2010 +0000
@@ -30,7 +30,6 @@
 
 from UI.Info import Program, Version
 
-from eric5config import getConfig
 import Preferences
 
 configDir = None
@@ -69,7 +68,7 @@
         """
         Constructor
         """
-        self.errorMessage = QApplication.translate("CodingError", 
+        self.errorMessage = QCoreApplication.translate("CodingError", 
             "The coding '{0}' is wrong for the given text.").format(coding)
         
     def __repr__(self):
@@ -875,7 +874,6 @@
     minor = vl[1]
 
     pyVers = major + "." + minor
-    pyVersNr = int(major) * 10 + int(minor)
 
     if isWindowsPlatform():
         libDir = sys.prefix + "\\Lib"
@@ -928,9 +926,8 @@
                 return (False, None, None, None, None)
             template = quixote.ptl_compile.Template(codestring, file)
             template.compile()
-            codeobject = template.code
         else:
-            codeobject = builtins.compile(codestring, file, 'exec')
+            builtins.compile(codestring, file, 'exec')
     except SyntaxError as detail:
         import traceback, re
         lines = traceback.format_exception_only(SyntaxError, detail)

eric ide

mercurial