From d8fc5081a1537e913c523249d04a63f673cd0efc Mon Sep 17 00:00:00 2001 From: David Vierra Date: Tue, 16 Nov 2010 19:10:59 -1000 Subject: [PATCH] raise the right NotImplementedError --- mclevel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mclevel.py b/mclevel.py index e576ef5..67e3438 100644 --- a/mclevel.py +++ b/mclevel.py @@ -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: