eric6/eric6_api.py

changeset 7257
c4d0cac9b5c9
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 4ef3b78ebb4e -r c4d0cac9b5c9 eric6/eric6_api.py
--- a/eric6/eric6_api.py	Sat Sep 21 20:30:56 2019 +0200
+++ b/eric6/eric6_api.py	Sat Sep 21 22:03:03 2019 +0200
@@ -166,8 +166,7 @@
             includePrivate = True
         elif k in ["-l", "--language"]:
             if v not in progLanguages:
-                if v not in \
-                        DocumentationTools.supportedExtensionsDictForApis:
+                if v not in DocumentationTools.supportedExtensionsDictForApis:
                     sys.stderr.write(
                         "Wrong language given: {0}. Aborting\n".format(v))
                     sys.exit(1)
@@ -196,8 +195,9 @@
         apis = []
         basesDict = {}
 
-        supportedExtensions = \
+        supportedExtensions = (
             DocumentationTools.supportedExtensionsDictForApis[progLanguage]
+        )
         supportedExtensions.extend(extensions)
         if "%L" in outputFileName:
             outputFile = outputFileName.replace("%L", progLanguage)
@@ -251,8 +251,10 @@
                             # assume package
                             inpackage = True
                 else:
-                    if Utilities.isWindowsPlatform() and \
-                            glob.has_magic(filename):
+                    if (
+                        Utilities.isWindowsPlatform() and
+                        glob.has_magic(filename)
+                    ):
                         files = glob.glob(filename)
                     else:
                         files = [filename]

eric ide

mercurial