Plugins/VcsPlugins/vcsMercurial/HgDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 3008
7848489bcb92
child 3058
0a02c433f52d
--- a/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -59,7 +59,8 @@
     
     def __finish(self):
         """
-        Private slot called when the process finished or the user pressed the button.
+        Private slot called when the process finished or the user pressed
+        the button.
         """
         if self.proc is not None and \
            self.proc.state() != QProcess.NotRunning:
@@ -75,7 +76,8 @@
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True)
         self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
-        self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason)
+        self.buttonBox.button(QDialogButtonBox.Close).setFocus(
+            Qt.OtherFocusReason)
         
         if Preferences.getVCS("AutoClose") and \
            self.normal and \
@@ -120,8 +122,9 @@
         self.intercept = False
         
         self.__hasAddOrDelete = False
-        if args[0] in ["fetch", "qpush", "qpop", "qgoto", "rebase", "transplant",
-                       "update", "import", "revert", "graft"] or \
+        if args[0] in ["fetch", "qpush", "qpop", "qgoto", "rebase",
+                       "transplant", "update", "import", "revert",
+                       "graft"] or \
            (args[0] in ["pull", "unbundle"] and \
             ("--update" in args[1:] or "--rebase" in args[1:])):
             self.__updateCommand = True

eric ide

mercurial