Fixed some code style issues. conda

Sun, 27 Jan 2019 19:58:14 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 27 Jan 2019 19:58:14 +0100
branch
conda
changeset 6678
5f1de9e59227
parent 6677
6299d69a218a
child 6679
c5f7b2e9a06d

Fixed some code style issues.

CondaInterface/CondaExecDialog.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/CondaPage.py file | annotate | diff | comparison | revisions
VirtualEnv/VirtualenvConfigurationDialog.py file | annotate | diff | comparison | revisions
VirtualEnv/VirtualenvExecDialog.py file | annotate | diff | comparison | revisions
VirtualEnv/VirtualenvNameDialog.py file | annotate | diff | comparison | revisions
--- a/CondaInterface/CondaExecDialog.py	Sun Jan 27 19:52:37 2019 +0100
+++ b/CondaInterface/CondaExecDialog.py	Sun Jan 27 19:58:14 2019 +0100
@@ -27,12 +27,17 @@
 
 class CondaExecDialog(QDialog, Ui_CondaExecDialog):
     """
-    Class documentation goes here.
+    Class implementing a dialog to show the output of a conda execution.
     """
     def __init__(self, configuration, venvManager, parent=None):
         """
         Constructor
         
+        @param configuration dictionary containing the configuration parameters
+            as returned by the command configuration dialog
+        @type dict
+        @param venvManager reference to the virtual environment manager
+        @type VirtualenvManager
         @param parent reference to the parent widget
         @type QWidget
         """
--- a/Preferences/ConfigurationPages/CondaPage.py	Sun Jan 27 19:52:37 2019 +0100
+++ b/Preferences/ConfigurationPages/CondaPage.py	Sun Jan 27 19:58:14 2019 +0100
@@ -24,9 +24,6 @@
     def __init__(self):
         """
         Constructor
-        
-        @param parent reference to the parent widget
-        @type QWidget
         """
         super(CondaPage, self).__init__()
         self.setupUi(self)
--- a/VirtualEnv/VirtualenvConfigurationDialog.py	Sun Jan 27 19:52:37 2019 +0100
+++ b/VirtualEnv/VirtualenvConfigurationDialog.py	Sun Jan 27 19:58:14 2019 +0100
@@ -502,8 +502,8 @@
             open the target directory after creation, 'createLog' containing a
             flag to write a log file, 'createScript' containing a flag to write
             a script, 'targetDirectory' containing the target directory and
-            'pythonExe' containing the Python interpreter to be used. The conda
-            specific keys are
+            'pythonExe' containing the Python interpreter to be used. There are
+            no conda specific keys.
         @rtype dict
         """
         # TODO: add the conda keys to the above description
@@ -520,10 +520,10 @@
         else:
             resultDict.update({
                 "envType": ("pyvenv" if self.pyvenvButton.isChecked() else
-                            "virtualenv"), 
+                            "virtualenv"),
                 "openTarget": self.openCheckBox.isChecked(),
                 "createLog": self.logCheckBox.isChecked(),
-                "createScript":self.scriptCheckBox.isChecked(),
+                "createScript": self.scriptCheckBox.isChecked(),
                 "targetDirectory": self.__generateTargetDir(),
                 "pythonExe": Utilities.toNativeSeparators(
                     self.pythonExecPicker.text()),
--- a/VirtualEnv/VirtualenvExecDialog.py	Sun Jan 27 19:52:37 2019 +0100
+++ b/VirtualEnv/VirtualenvExecDialog.py	Sun Jan 27 19:58:14 2019 +0100
@@ -39,7 +39,7 @@
         
         @param configuration dictionary containing the configuration parameters
             as returned by the command configuration dialog
-        @type dictResolver
+        @type dict
         @param venvManager reference to the virtual environment manager
         @type VirtualenvManager
         @param parent reference to the parent widget
--- a/VirtualEnv/VirtualenvNameDialog.py	Sun Jan 27 19:52:37 2019 +0100
+++ b/VirtualEnv/VirtualenvNameDialog.py	Sun Jan 27 19:58:14 2019 +0100
@@ -8,6 +8,8 @@
 environment.
 """
 
+from __future__ import unicode_literals
+
 from PyQt5.QtCore import pyqtSlot, Qt
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox
 
@@ -42,7 +44,7 @@
     @pyqtSlot(str)
     def on_nameEdit_textChanged(self, txt):
         """
-        Slot documentation goes here.
+        Private slot to handle a change of the environment name.
         
         @param txt contens of the name edit
         @type str

eric ide

mercurial