Helpviewer/GreaseMonkey/GreaseMonkeyDownloader.py

changeset 3022
57179e4cdadd
parent 3020
542e97d4ecb3
child 3035
36e9f388958b
child 3058
0a02c433f52d
--- a/Helpviewer/GreaseMonkey/GreaseMonkeyDownloader.py	Mon Oct 14 20:08:19 2013 +0200
+++ b/Helpviewer/GreaseMonkey/GreaseMonkeyDownloader.py	Tue Oct 15 18:29:32 2013 +0200
@@ -37,7 +37,8 @@
         
         self.__manager = manager
         
-        self.__reply = FollowRedirectReply(request.url(),
+        self.__reply = FollowRedirectReply(
+            request.url(),
             Helpviewer.HelpWindow.HelpWindow.networkAccessManager())
         self.__reply.finished.connect(self.__scriptDownloaded)
         
@@ -57,7 +58,8 @@
         if self.__reply.error() == QNetworkReply.NoError and \
            "// ==UserScript==" in response:
             from Helpviewer import HelpUtilities
-            filePath = os.path.join(self.__manager.scriptsDirectory(),
+            filePath = os.path.join(
+                self.__manager.scriptsDirectory(),
                 HelpUtilities.getFileNameFromUrl(self.__reply.url()))
             self.__fileName = HelpUtilities.ensureUniqueFilename(filePath)
             
@@ -144,7 +146,8 @@
         Private slot to initiate the download of required scripts.
         """
         if self.__requireUrls:
-            self.__reply = FollowRedirectReply(self.__requireUrls.pop(0),
+            self.__reply = FollowRedirectReply(
+                self.__requireUrls.pop(0),
                 Helpviewer.HelpWindow.HelpWindow.networkAccessManager())
             self.__reply.finished.connect(self.__requireDownloaded)
         else:

eric ide

mercurial