patch_modpython.py

changeset 2992
dbdf27746da5
parent 2965
d133c7edd88a
child 3036
30c81c9e88b8
child 3057
10516539f238
diff -r 226481ff40d1 -r dbdf27746da5 patch_modpython.py
--- a/patch_modpython.py	Sun Oct 06 19:52:33 2013 +0200
+++ b/patch_modpython.py	Mon Oct 07 19:10:11 2013 +0200
@@ -31,10 +31,11 @@
     print("    {0} [-h] [-d dir]".format(progName))
     print("where:")
     print("    -h             display this help message")
-    print("    -d dir         where Mod_python files are installed [default {0}]".format(
-        modDir))
+    print("    -d dir         where Mod_python files are installed"
+          " [default {0}]".format(modDir))
     print()
-    print("This script patches the file apache.py of the Mod_python distribution")
+    print("This script patches the file apache.py of the Mod_python"
+          " distribution")
     print("so that it will work with the eric5 debugger instead of pdb.")
     print("Please see mod_python.html for more details.")
     print()
@@ -49,7 +50,8 @@
     """
     global modDir
 
-    modDir = os.path.join(distutils.sysconfig.get_python_lib(True), "mod_python")
+    modDir = os.path.join(distutils.sysconfig.get_python_lib(True),
+                          "mod_python")
 
 
 def main(argv):
@@ -106,7 +108,8 @@
         s.write("\n")
         s.write('def initDebugger(name):\n')
         s.write('    """\n')
-        s.write('    Initialize the debugger and set the script name to be reported \n')
+        s.write('    Initialize the debugger and set the script name to be'
+                ' reported \n')
         s.write('    by the debugger. This is a patch for eric5.\n')
         s.write('    """\n')
         s.write('    if not pdb.initDebugger("standard"):\n')
@@ -154,7 +157,8 @@
     except SystemExit:
         raise
     except:
-        print("""An internal error occured.  Please report all the output of the program,
+        print(
+"""An internal error occured.  Please report all the output of the program,
 including the following traceback, to eric-bugs@die-offenbachs.de.
 """)
         raise

eric ide

mercurial