eric5.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 996
5eddcfeb8948
--- a/eric5.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/eric5.py	Fri Mar 11 16:51:57 2011 +0100
@@ -32,7 +32,7 @@
 
 if "--debug" in sys.argv:
     del sys.argv[sys.argv.index("--debug")]
-    logging.basicConfig(level = logging.DEBUG)
+    logging.basicConfig(level=logging.DEBUG)
 
 for arg in sys.argv:
     if arg.startswith("--config="):
@@ -60,6 +60,7 @@
 logging.debug("Importing Preferences")
 import Preferences
 
+
 def handleSingleApplication(ddindex):
     """
     Global function to handle the single application mode.
@@ -86,6 +87,7 @@
         print("eric5: {0}".format(client.errstr()))
         sys.exit(res)
 
+
 def excepthook(excType, excValue, tracebackobj):
     """
     Global function to catch unhandled exceptions.
@@ -119,7 +121,7 @@
     sections = [separator, timeString, separator, errmsg, separator, tbinfo]
     msg = '\n'.join(sections)
     try:
-        f = open(logFile, "w", encoding = "utf-8")
+        f = open(logFile, "w", encoding="utf-8")
         f.write(msg)
         f.write(versionInfo)
         f.close()
@@ -127,6 +129,7 @@
         pass
     qWarning(str(notice) + str(msg) + str(versionInfo))
 
+
 def uiStartUp():
     """
     Global function to finalize the start up of the main UI.
@@ -144,6 +147,7 @@
     mainWindow.performVersionCheck(False)
     mainWindow.checkConfigurationStatus()
 
+
 def main():
     """
     Main entry point into the application.
@@ -153,13 +157,13 @@
     sys.excepthook = excepthook
     
     options = [\
-        ("--config=configDir", 
-         "use the given directory as the one containing the config files"), 
-        ("--debug", "activate debugging output to the console"), 
+        ("--config=configDir",
+         "use the given directory as the one containing the config files"),
+        ("--debug", "activate debugging output to the console"),
         ("--nosplash", "don't show the splash screen"),
-        ("--noopen", "don't open anything at startup except that given in command"), 
-        ("--plugin=plugin-file", "load the given plugin file (plugin development)"), 
-        ("--start-session", "load the global session file"), 
+        ("--noopen", "don't open anything at startup except that given in command"),
+        ("--plugin=plugin-file", "load the given plugin file (plugin development)"),
+        ("--start-session", "load the global session file"),
         ("--", "indicate that there are options for the program to be debugged"),
         ("", "(everything after that is considered arguments for this program)")
     ]

eric ide

mercurial