0

damn semicolons!

This commit is contained in:
Andrew Brown
2011-11-06 20:58:50 -05:00
parent 13bca41192
commit 2e28375786
2 changed files with 4 additions and 4 deletions

View File

@@ -299,7 +299,7 @@ class QuadtreeGen(object):
#stat the tile, we need to know if it exists or it's mtime #stat the tile, we need to know if it exists or it's mtime
try: try:
tile_mtime = os.stat(imgpath)[stat.ST_MTIME]; tile_mtime = os.stat(imgpath)[stat.ST_MTIME]
except OSError, e: except OSError, e:
if e.errno != errno.ENOENT: if e.errno != errno.ENOENT:
raise raise
@@ -401,7 +401,7 @@ class QuadtreeGen(object):
world = self.world world = self.world
#stat the file, we need to know if it exists or it's mtime #stat the file, we need to know if it exists or it's mtime
try: try:
tile_mtime = os.stat(imgpath)[stat.ST_MTIME]; tile_mtime = os.stat(imgpath)[stat.ST_MTIME]
except OSError, e: except OSError, e:
if e.errno != errno.ENOENT: if e.errno != errno.ENOENT:
raise raise

View File

@@ -117,7 +117,7 @@ class World(object):
logging.debug(ex.str()) logging.debug(ex.str())
if os.path.exists(self.pickleFile): if os.path.exists(self.pickleFile):
self.persistentDataIsNew = False; self.persistentDataIsNew = False
with open(self.pickleFile,"rb") as p: with open(self.pickleFile,"rb") as p:
self.persistentData = cPickle.load(p) self.persistentData = cPickle.load(p)
if not self.persistentData.get('north_direction', False): if not self.persistentData.get('north_direction', False):
@@ -159,7 +159,7 @@ class World(object):
def get_region_path(self, chunkX, chunkY): def get_region_path(self, chunkX, chunkY):
"""Returns the path to the region that contains chunk (chunkX, chunkY) """Returns the path to the region that contains chunk (chunkX, chunkY)
""" """
_, _, regionfile,_ = self.regionfiles.get((chunkX//32, chunkY//32),(None,None,None,None)); _, _, regionfile,_ = self.regionfiles.get((chunkX//32, chunkY//32),(None,None,None,None))
return regionfile return regionfile
def load_from_region(self,filename, x, y): def load_from_region(self,filename, x, y):