fix errror when compressing with python3
@@ -120,6 +120,9 @@ Please set only one of these two options to 'True'
sys.stdout.flush()
if display_progress:
ui.info_progress(i, len(to_add), "Done")
+ if six.PY3:
+ zip_call(attr, content)
+ else:
zip_call(attr, content.encode('ascii', "ignore"))
archive.close()
return output
