From 5a14f1b486892b7ba0882356faa3963151ea3a34 Mon Sep 17 00:00:00 2001 From: Stephen Fluin Date: Wed, 29 Sep 2010 21:17:22 -0500 Subject: [PATCH 1/2] Fixed scoping for imageformat --- quadtree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quadtree.py b/quadtree.py index 8733881..03f6672 100644 --- a/quadtree.py +++ b/quadtree.py @@ -172,8 +172,8 @@ class QuadtreeGen(object): newdir = "new" + str(dirnum) newdirpath = getpath(newdir) - files = [str(dirnum)+"."+imgformat, str(dirnum)+".hash", str(dirnum)] - newfiles = [str(newnum)+"."+imgformat, str(newnum)+".hash", str(newnum)] + files = [str(dirnum)+"."+self.imgformat, str(dirnum)+".hash", str(dirnum)] + newfiles = [str(newnum)+"."+self.imgformat, str(newnum)+".hash", str(newnum)] os.mkdir(newdirpath) for f, newf in zip(files, newfiles): From fd43331350b285e7c3f0a60e6cbd5c6e5b2631e8 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 29 Sep 2010 23:31:19 -0400 Subject: [PATCH 2/2] removed unused imports --- chunk.py | 1 - world.py | 1 - 2 files changed, 2 deletions(-) diff --git a/chunk.py b/chunk.py index 47d1dc8..fef3a84 100644 --- a/chunk.py +++ b/chunk.py @@ -15,7 +15,6 @@ import numpy from PIL import Image, ImageDraw -from itertools import izip, count import os.path import hashlib diff --git a/world.py b/world.py index 99728c1..3ee4b5b 100644 --- a/world.py +++ b/world.py @@ -20,7 +20,6 @@ import multiprocessing import sys import numpy -from PIL import Image import chunk import nbt