Permalink
Browse files

MCJavaLevel: Fix AttributeError in saveInPlace

Caused by incomplete removal of 'compressed' flags.
  • Loading branch information...
codewarrior0 committed Dec 12, 2012
1 parent 06f7958 commit 76e990e4d983412a90f8c3640111391e354007c7
Showing with 2 additions and 4 deletions.
  1. +2 −4 java.py
View
@@ -111,10 +111,8 @@ def __init__(self, filename, data):
def saveInPlace(self):
s = StringIO()
- if self.compressed:
- g = gzip.GzipFile(fileobj=s, mode='wb')
- else:
- g = s
+ g = gzip.GzipFile(fileobj=s, mode='wb')
+
g.write(self.filedata.tostring())
g.flush()

0 comments on commit 76e990e

Please sign in to comment.