eric6/Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py

changeset 7262
c4b5f3393d63
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py	Tue Sep 24 18:42:25 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py	Tue Sep 24 18:45:33 2019 +0200
@@ -32,8 +32,7 @@
         
         self.__ioEncoding = Preferences.getSystem("IOEncoding")
         
-        self.rx_status1 = \
-            QRegExp('(.{8,9})\\s+([0-9-]+)\\s+(.+)\\s*')
+        self.rx_status1 = QRegExp('(.{8,9})\\s+([0-9-]+)\\s+(.+)\\s*')
         self.rx_status2 = QRegExp(
             '(.{8,9})\\s+([0-9-]+)\\s+([0-9?]+)\\s+(\\S+)\\s+(.+)\\s*')
     
@@ -85,8 +84,10 @@
                         path = self.rx_status2.cap(5).strip()
                     else:
                         continue
-                    if flags[0] in "ACDMR" or \
-                       (flags[0] == " " and flags[-1] == "*"):
+                    if (
+                        flags[0] in "ACDMR" or
+                        (flags[0] == " " and flags[-1] == "*")
+                    ):
                         if flags[-1] == "*":
                             status = "U"
                         else:
@@ -115,10 +116,12 @@
             else:
                 process.kill()
                 process.waitForFinished()
-                return False, \
+                return (
+                    False,
                     str(process.readAllStandardError(),
                         Preferences.getSystem("IOEncoding"),
                         'replace')
+                )
         else:
             process.kill()
             process.waitForFinished()

eric ide

mercurial