eric5_api.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
diff -r 10516539f238 -r 0a02c433f52d eric5_api.py
--- a/eric5_api.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/eric5_api.py	Fri Nov 01 15:48:48 2013 +0100
@@ -116,7 +116,8 @@
     import getopt
 
     try:
-        opts, args = getopt.getopt(sys.argv[1:], "b:e:hl:o:pRrt:Vx:",
+        opts, args = getopt.getopt(
+            sys.argv[1:], "b:e:hl:o:pRrt:Vx:",
             ["base=", "eol=", "exclude=", "exclude-file=", "extension=",
              "help", "language=", "output=", "private", "recursive",
              "version", ])
@@ -204,8 +205,8 @@
         
         for arg in args:
             if os.path.isdir(arg):
-                if os.path.exists(os.path.join(arg,
-                        Utilities.joinext("__init__", ".py"))):
+                if os.path.exists(os.path.join(
+                        arg, Utilities.joinext("__init__", ".py"))):
                     basename = os.path.dirname(arg)
                     if arg == '.':
                         sys.stderr.write("The directory '.' is a package.\n")
@@ -259,7 +260,8 @@
                         continue
                     
                     try:
-                        module = Utilities.ModuleParser.readModule(file,
+                        module = Utilities.ModuleParser.readModule(
+                            file,
                             basename=basename, inpackage=inpackage)
                         apiGenerator = APIGenerator(module)
                         api = apiGenerator.genAPI(True, basePackage,

eric ide

mercurial