eric6/PipInterface/Pip.py

changeset 7255
d595f6f9cbf8
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/PipInterface/Pip.py	Sat Sep 21 17:41:22 2019 +0200
+++ b/eric6/PipInterface/Pip.py	Sat Sep 21 18:30:02 2019 +0200
@@ -14,8 +14,9 @@
 
 from PyQt5.QtCore import pyqtSlot, QObject, QProcess, QUrl, QCoreApplication
 from PyQt5.QtWidgets import QDialog
-from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkRequest, \
-    QNetworkReply
+from PyQt5.QtNetwork import (
+    QNetworkAccessManager, QNetworkRequest, QNetworkReply
+)
 
 from E5Gui import E5MessageBox
 from E5Gui.E5Application import e5App
@@ -184,15 +185,18 @@
         @rtype str
         """
         if venvName == self.getProjectEnvironmentString():
-            venvName = \
-                e5App().getObject("Project").getDebugProperty("VIRTUALENV")
+            venvName = (
+                e5App().getObject("Project")
+                .getDebugProperty("VIRTUALENV")
+            )
             if not venvName:
                 # fall back to interpreter used to run eric6
                 return sys.executable
         
-        interpreter = \
-            e5App().getObject("VirtualEnvManager").getVirtualenvInterpreter(
-                venvName)
+        interpreter = (
+            e5App().getObject("VirtualEnvManager")
+            .getVirtualenvInterpreter(venvName)
+        )
         if not interpreter:
             E5MessageBox.critical(
                 None,
@@ -393,8 +397,7 @@
                     return
                 
                 if Preferences.getPip("PipSearchIndex"):
-                    indexUrl = Preferences.getPip("PipSearchIndex") + \
-                        "/simple"
+                    indexUrl = Preferences.getPip("PipSearchIndex") + "/simple"
                     args = ["-m", "pip", "install", "--index-url", indexUrl]
                 else:
                     args = ["-m", "pip", "install"]
@@ -419,8 +422,9 @@
         """
         res = False
         if packages and venvName:
-            from UI.DeleteFilesConfirmationDialog import \
+            from UI.DeleteFilesConfirmationDialog import (
                 DeleteFilesConfirmationDialog
+            )
             dlg = DeleteFilesConfirmationDialog(
                 self.parent(),
                 self.tr("Uninstall Packages"),
@@ -459,8 +463,9 @@
                     except (OSError, IOError):
                         return
                     
-                    from UI.DeleteFilesConfirmationDialog import \
+                    from UI.DeleteFilesConfirmationDialog import (
                         DeleteFilesConfirmationDialog
+                    )
                     dlg = DeleteFilesConfirmationDialog(
                         self.parent(),
                         self.tr("Uninstall Packages"),

eric ide

mercurial