PluginManager/PluginRepositoryDialog.py

changeset 75
035e71f2edcd
parent 50
a36eecf45b2e
child 80
166d5df6337c
equal deleted inserted replaced
74:f0c0e4638a0f 75:035e71f2edcd
500 500
501 # check, if the archive is a valid zip file 501 # check, if the archive is a valid zip file
502 if not zipfile.is_zipfile(archive): 502 if not zipfile.is_zipfile(archive):
503 return False 503 return False
504 504
505 zip = zipfile.ZipFile(archive, "rb") 505 zip = zipfile.ZipFile(archive, "r")
506 try: 506 try:
507 aversion = zip.read("VERSION").decode("utf-8") 507 aversion = zip.read("VERSION").decode("utf-8")
508 except KeyError: 508 except KeyError:
509 aversion = "" 509 aversion = ""
510 zip.close() 510 zip.close()

eric ide

mercurial