eric5_doc.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3035
36e9f388958b
child 3145
a9de05d4a22f
diff -r 0a02c433f52d -r 5883ce99ee12 eric5_doc.py
--- a/eric5_doc.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/eric5_doc.py	Sun Nov 03 15:58:22 2013 +0100
@@ -131,14 +131,18 @@
     """
     Function to show the version information.
     """
-    print("""eric5_doc  {0}
-
-Eric5 API documentation generator.
-
-Copyright (c) 2003-2013 Detlev Offenbach <detlev@die-offenbachs.de>
-This is free software; see the LICENSE.GPL3 for copying conditions.
-There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
-PARTICULAR PURPOSE.""".format(Version))
+    print(
+        """eric5_doc  {0}\n"""
+        """\n"""
+        """Eric5 API documentation generator.\n"""
+        """\n"""
+        """Copyright (c) 2003-2013 Detlev Offenbach"""
+        """ <detlev@die-offenbachs.de>\n"""
+        """This is free software; see the LICENSE.GPL3 for copying"""
+        """ conditions.\n"""
+        """There is NO warranty; not even for MERCHANTABILITY or FITNESS"""
+        """ FOR A\n"""
+        """PARTICULAR PURPOSE.""".format(Version))
     sys.exit(1)
 
 
@@ -162,7 +166,7 @@
              "create-qhp", "qhp-outdir=", "qhp-namespace=",
              "qhp-virtualfolder=", "qhp-filtername=", "qhp-filterattribs=",
              "qhp-title=", "create-qhc",
-            ])
+             ])
     except getopt.error:
         usage()
 
@@ -259,9 +263,9 @@
         usage()
     
     if qtHelpCreation and \
-       (qtHelpNamespace == "" or \
-        qtHelpFolder == "" or '/' in qtHelpFolder or \
-        qtHelpTitle == ""):
+       (qtHelpNamespace == "" or
+        qtHelpFolder == "" or '/' in qtHelpFolder or
+            qtHelpTitle == ""):
         usage()
     
     if qtHelpCreation:
@@ -307,7 +311,7 @@
                 except EnvironmentError:
                     sys.stderr.write(
                         "Could not create QtHelp output directory {0}.".format(
-                        qtHelpOutputDir))
+                            qtHelpOutputDir))
                     sys.exit(2)
         else:
             qtHelpOutputDir = os.getcwd()

eric ide

mercurial