Helpviewer/GreaseMonkey/GreaseMonkeyManager.py

changeset 4326
e52318f11812
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4325:3e6dd786a5ff 4326:e52318f11812
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-Eric6-UserLoadAction") == QByteArray("1"): 306 request.rawHeader(b"X-Eric6-UserLoadAction") == QByteArray(b"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