Use local vars instead of calling len()

This commit is contained in:
Florian Festi 2016-04-18 17:41:26 +02:00
parent 3c56abf047
commit b0a2ce8b22
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class Layout(Boxes):
self.ctx.save()
# Horizontal Walls
for y in range(len(self.y) + 1):
for y in range(ly + 1):
if y == 0 or y == ly:
h = self.h
else:
@ -160,7 +160,7 @@ class Layout(Boxes):
self.ctx.save()
# Vertical Walls
for x in range(len(self.x) + 1):
for x in range(lx + 1):
if x == 0 or x == lx:
h = self.h
else: