eric7/PluginManager/PluginManager.py

branch
eric7
changeset 8366
2a9f5153c438
parent 8358
144a6b854f70
child 8385
a578b45eb13e
equal deleted inserted replaced
8365:cde9bde830ea 8366:2a9f5153c438
25 from EricWidgets import EricMessageBox 25 from EricWidgets import EricMessageBox
26 from EricWidgets.EricApplication import ericApp 26 from EricWidgets.EricApplication import ericApp
27 27
28 from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired 28 from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired
29 try: 29 try:
30 from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState 30 from EricNetwork.EricSslErrorHandler import (
31 EricSslErrorHandler, EricSslErrorState
32 )
31 SSL_AVAILABLE = True 33 SSL_AVAILABLE = True
32 except ImportError: 34 except ImportError:
33 SSL_AVAILABLE = False 35 SSL_AVAILABLE = False
34 36
35 from .PluginExceptions import ( 37 from .PluginExceptions import (
1303 if f.open(QIODevice.OpenModeFlag.ReadOnly): 1305 if f.open(QIODevice.OpenModeFlag.ReadOnly):
1304 # save current URL 1306 # save current URL
1305 url = Preferences.getUI("PluginRepositoryUrl7") 1307 url = Preferences.getUI("PluginRepositoryUrl7")
1306 1308
1307 # read the repository file 1309 # read the repository file
1308 from EricXML.PluginRepositoryReader import PluginRepositoryReader 1310 from EricXML.PluginRepositoryReader import (
1311 PluginRepositoryReader
1312 )
1309 reader = PluginRepositoryReader(f, self.checkPluginEntry) 1313 reader = PluginRepositoryReader(f, self.checkPluginEntry)
1310 reader.readXML() 1314 reader.readXML()
1311 if url != Preferences.getUI("PluginRepositoryUrl7"): 1315 if url != Preferences.getUI("PluginRepositoryUrl7"):
1312 # redo if it is a redirect 1316 # redo if it is a redirect
1313 self.checkPluginUpdatesAvailable() 1317 self.checkPluginUpdatesAvailable()

eric ide

mercurial