Skip to content

Commit

Permalink
fix stpZ file exporting (six & py3 issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
easyw authored and yorikvanhavre committed May 4, 2019
1 parent dd62a3e commit 6a7649d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Import/stepZ.py
Expand Up @@ -21,7 +21,7 @@
from PySide import QtGui, QtCore
import tempfile

___stpZversion___ = "1.3.3"
___stpZversion___ = "1.3.4"


if six.PY3:
Expand Down Expand Up @@ -158,7 +158,7 @@ def export(objs,filename):
QtGui.QApplication.restoreOverrideCursor()
reply = QtGui.QMessageBox.information(None,"info", "File cannot be compressed because\na file with the same name exists\n'"+ namefpath+ "'")
else:
with six.builtins.open(outfpath_stp, 'rb') as f_in:
with builtin.open(outfpath_stp, 'rb') as f_in:
file_content = f_in.read()
new_f_content = file_content
f_in.close()
Expand Down

0 comments on commit 6a7649d

Please sign in to comment.