Helpviewer/GreaseMonkey/GreaseMonkeyManager.py

changeset 2107
1690f30db6f3
parent 2087
795992a5c561
child 2302
f29e9405c851
--- a/Helpviewer/GreaseMonkey/GreaseMonkeyManager.py	Sat Oct 06 14:50:12 2012 +0200
+++ b/Helpviewer/GreaseMonkey/GreaseMonkeyManager.py	Sat Oct 06 17:58:06 2012 +0200
@@ -10,7 +10,7 @@
 import os
 
 from PyQt4.QtCore import pyqtSignal, QObject, QTimer, QFile, QDir, QSettings, QUrl, \
-    QByteArray, qVersion
+    QByteArray
 from PyQt4.QtNetwork import QNetworkAccessManager
 
 from .GreaseMonkeyJavaScript import bootstrap_js
@@ -298,11 +298,7 @@
         """
         if op == QNetworkAccessManager.GetOperation and \
            request.rawHeader("X-Eric5-UserLoadAction") == QByteArray("1"):
-            if qVersion() >= "5.0.0":
-                urlString = request.url().toString(QUrl.ComponentFormattingOptions(
-                    QUrl.RemoveFragment | QUrl.RemoveQuery))
-            else:
-                urlString = request.url().toString(QUrl.RemoveFragment | QUrl.RemoveQuery)
+            urlString = request.url().toString(QUrl.RemoveFragment | QUrl.RemoveQuery)
             if urlString.endswith(".user.js"):
                 self.downloadScript(request)
                 return EmptyNetworkReply(self)

eric ide

mercurial