src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py
--- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnUtilities.py	Wed Jul 13 14:55:47 2022 +0200
@@ -20,7 +20,7 @@
 def formatTime(seconds):
     """
     Module function to return a formatted time string.
-    
+
     @param seconds time in seconds since epoch to be formatted (float or long)
     @return formatted time string (string)
     """
@@ -34,18 +34,21 @@
 def dateFromTime_t(seconds):
     """
     Module function to return the date.
-    
+
     @param seconds time in seconds since epoch to be formatted (float or long)
     @return date (QDate)
     """
-    return QDateTime.fromSecsSinceEpoch(int(seconds)).toTimeSpec(
-        Qt.TimeSpec.LocalTime).date()
+    return (
+        QDateTime.fromSecsSinceEpoch(int(seconds))
+        .toTimeSpec(Qt.TimeSpec.LocalTime)
+        .date()
+    )
 
 
 def getServersPath():
     """
     Module function to get the filename of the servers file.
-    
+
     @return filename of the servers file (string)
     """
     if Utilities.isWindowsPlatform():
@@ -59,7 +62,7 @@
 def getConfigPath():
     """
     Module function to get the filename of the config file.
-    
+
     @return filename of the config file (string)
     """
     if Utilities.isWindowsPlatform():
@@ -91,7 +94,7 @@
             configList = f.read().splitlines()
     except OSError:
         return
-    
+
     newConfig = []
     ignoresFound = False
     amendList = []
@@ -121,7 +124,7 @@
                     amendList.append(amend)
         else:
             newConfig.append(line)
-    
+
     if newConfig != configList:
         with contextlib.suppress(OSError), open(config, "w") as f:
             f.write("\n".join(newConfig))

eric ide

mercurial