Helpviewer/GreaseMonkey/GreaseMonkeyManager.py

changeset 3670
f0cb7579c0b4
parent 3656
441956d8fce5
child 4021
195a471c327b
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
301 @param outgoingData reference to an IODevice containing data to be sent 301 @param outgoingData reference to an IODevice containing data to be sent
302 (QIODevice) 302 (QIODevice)
303 @return reference to the created reply object (QNetworkReply) 303 @return reference to the created reply object (QNetworkReply)
304 """ 304 """
305 if op == QNetworkAccessManager.GetOperation and \ 305 if op == QNetworkAccessManager.GetOperation and \
306 request.rawHeader("X-Eric5-UserLoadAction") == QByteArray("1"): 306 request.rawHeader("X-Eric6-UserLoadAction") == QByteArray("1"):
307 urlString = request.url().toString( 307 urlString = request.url().toString(
308 QUrl.RemoveFragment | QUrl.RemoveQuery) 308 QUrl.RemoveFragment | QUrl.RemoveQuery)
309 if urlString.endswith(".user.js"): 309 if urlString.endswith(".user.js"):
310 self.downloadScript(request) 310 self.downloadScript(request)
311 from Helpviewer.Network.EmptyNetworkReply import \ 311 from Helpviewer.Network.EmptyNetworkReply import \

eric ide

mercurial