diff -r a28338eaf694 -r 0c63ea7f94bd eric6/WebBrowser/Sync/FtpSyncHandler.py --- a/eric6/WebBrowser/Sync/FtpSyncHandler.py Wed Sep 25 18:48:22 2019 +0200 +++ b/eric6/WebBrowser/Sync/FtpSyncHandler.py Wed Sep 25 18:52:40 2019 +0200 @@ -11,8 +11,9 @@ import ftplib import io -from PyQt5.QtCore import pyqtSignal, QTimer, QFileInfo, QCoreApplication, \ - QByteArray +from PyQt5.QtCore import ( + pyqtSignal, QTimer, QFileInfo, QCoreApplication, QByteArray +) from E5Network.E5Ftp import E5Ftp, E5FtpProxyType, E5FtpProxyError @@ -139,9 +140,8 @@ does not exist. Upon return, the current directory of the server is the sync directory. """ - storePathList = \ - Preferences.getWebBrowser("SyncFtpPath")\ - .replace("\\", "/").split("/") + storePathList = Preferences.getWebBrowser("SyncFtpPath").replace( + "\\", "/").split("/") if storePathList[0] == "": storePathList.pop(0) while storePathList: @@ -172,8 +172,9 @@ if urlInfo and urlInfo.isValid() and urlInfo.isFile(): if urlInfo.name() in self._remoteFiles.values(): - self.__remoteFilesFound[urlInfo.name()] = \ + self.__remoteFilesFound[urlInfo.name()] = ( urlInfo.lastModified() + ) QCoreApplication.processEvents() @@ -253,10 +254,14 @@ "speeddial") @param fileName name of the file to be synchronized (string) """ - if not self.__forceUpload and \ - self._remoteFiles[type_] in self.__remoteFilesFound: - if QFileInfo(fileName).lastModified() < \ - self.__remoteFilesFound[self._remoteFiles[type_]]: + if ( + not self.__forceUpload and + self._remoteFiles[type_] in self.__remoteFilesFound + ): + if ( + QFileInfo(fileName).lastModified() < + self.__remoteFilesFound[self._remoteFiles[type_]] + ): self.__downloadFile( type_, fileName, self.__remoteFilesFound[self._remoteFiles[type_]]