Create only uncompressed zip files as plug-in archives. 5_1_x

Sat, 16 Jul 2011 13:53:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 16 Jul 2011 13:53:48 +0200
branch
5_1_x
changeset 1174
53ae8212ccdb
parent 1168
68d25b6dd44d
child 1175
93655105b6de

Create only uncompressed zip files as plug-in archives.
(transplanted from a183f45d355334161082e774ff87c2ad63510798)

Project/Project.py file | annotate | diff | comparison | revisions
--- a/Project/Project.py	Mon Jul 04 08:08:04 2011 +0200
+++ b/Project/Project.py	Sat Jul 16 13:53:48 2011 +0200
@@ -4065,10 +4065,7 @@
         archive = \
             os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0].replace(".py", ".zip"))
         try:
-            try:
-                archiveFile = zipfile.ZipFile(archive, "w", zipfile.ZIP_DEFLATED)
-            except RuntimeError:
-                archiveFile = zipfile.ZipFile(archive, "w")
+            archiveFile = zipfile.ZipFile(archive, "w")
         except IOError as why:
             E5MessageBox.critical(self.ui,
                 self.trUtf8("Create Plugin Archive"),

eric ide

mercurial