eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/IbmWatsonEngine.py

branch
without_py2_and_pyqt4
changeset 7201
6b42677d7043
parent 7192
a22eee00b052
child 7229
53054eb5b15a
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/IbmWatsonEngine.py	Sun Sep 01 19:58:00 2019 +0200
+++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/IbmWatsonEngine.py	Mon Sep 02 18:50:38 2019 +0200
@@ -19,8 +19,6 @@
 
 from E5Network.E5NetworkProxyFactory import proxyAuthenticationRequired
 
-from Globals import qVersionTuple
-
 from .TranslationEngine import TranslationEngine
 
 
@@ -209,9 +207,7 @@
         ]
         
         request = QNetworkRequest(url)
-        if qVersionTuple() >= (5, 6, 0):
-            request.setAttribute(QNetworkRequest.FollowRedirectsAttribute,
-                                 True)
+        request.setAttribute(QNetworkRequest.FollowRedirectsAttribute, True)
         if extraHeaders:
             for name, value in extraHeaders:
                 request.setRawHeader(name, value)

eric ide

mercurial