Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 3008
7848489bcb92
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py
--- a/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -51,12 +51,14 @@
         
         self.__startAct = QAction(
             UI.PixmapCache.getIcon(
-                os.path.join("VcsPlugins", "vcsMercurial", "icons", "startServer.png")),
+                os.path.join("VcsPlugins", "vcsMercurial", "icons",
+                             "startServer.png")),
             self.trUtf8("Start Server"), self)
         self.__startAct.triggered[()].connect(self.__startServer)
         self.__stopAct = QAction(
             UI.PixmapCache.getIcon(
-                os.path.join("VcsPlugins", "vcsMercurial", "icons", "stopServer.png")),
+                os.path.join("VcsPlugins", "vcsMercurial", "icons",
+                             "stopServer.png")),
             self.trUtf8("Stop Server"), self)
         self.__stopAct.triggered[()].connect(self.__stopServer)
         self.__browserAct = QAction(
@@ -68,7 +70,8 @@
         self.__portSpin.setMinimum(2048)
         self.__portSpin.setMaximum(65535)
         self.__portSpin.setToolTip(self.trUtf8("Enter the server port"))
-        self.__portSpin.setValue(self.vcs.getPlugin().getPreferences("ServerPort"))
+        self.__portSpin.setValue(
+            self.vcs.getPlugin().getPreferences("ServerPort"))
         
         self.__styleCombo = QComboBox(self)
         self.__styleCombo.addItems(self.__styles)
@@ -107,7 +110,8 @@
         
         self.cNormalFormat = self.__log.currentCharFormat()
         self.cErrorFormat = self.__log.currentCharFormat()
-        self.cErrorFormat.setForeground(QBrush(Preferences.getUI("LogStdErrColour")))
+        self.cErrorFormat.setForeground(
+            QBrush(Preferences.getUI("LogStdErrColour")))
     
     def __startServer(self):
         """
@@ -166,7 +170,8 @@
         Private slot to start a browser for the served repository.
         """
         ui = e5App().getObject("UserInterface")
-        ui.launchHelpViewer("http://localhost:{0}".format(self.__portSpin.value()))
+        ui.launchHelpViewer(
+            "http://localhost:{0}".format(self.__portSpin.value()))
     
     def closeEvent(self, e):
         """

eric ide

mercurial