raise the right NotImplementedError

This commit is contained in:
David Vierra 2010-11-16 19:10:59 -10:00
parent 92d45e781c
commit d8fc5081a1

View File

@ -3079,10 +3079,10 @@ class ZipSchematic (MCInfdevOldLevel):
return self.zipfile.read(chunk.filename)
def _saveChunk(self, chunk, data):
raise NotImplemented, "Cannot save zipfiles yet!"
raise NotImplementedError, "Cannot save zipfiles yet!"
def saveInPlace(self):
raise NotImplemented, "Cannot save zipfiles yet!"
raise NotImplementedError, "Cannot save zipfiles yet!"
def preloadChunkPaths(self):
info( u"Scanning for chunks..." )
@ -3110,7 +3110,7 @@ class ZipSchematic (MCInfdevOldLevel):
def loadLevelDat(self, create, random_seed, last_played):
if create:
raise NotImplemented, "Cannot save zipfiles yet!"
raise NotImplementedError, "Cannot save zipfiles yet!"
with closing(self.zipfile.open("level.dat")) as f:
with closing(gzip.GzipFile(fileobj=StringIO.StringIO(f.read()))) as g: