syntax errors

This commit is contained in:
Josh Holtrop 2011-03-29 14:28:05 -04:00
parent 4826861967
commit a81c0d5a7d
2 changed files with 2 additions and 2 deletions

View File

@ -16,5 +16,5 @@ class Vertical(Constraint):
for i in range(len(varrefs1)): for i in range(len(varrefs1)):
coeffs.append((-1 * varrefs1[i], (self.shape1, i))) coeffs.append((-1 * varrefs1[i], (self.shape1, i)))
for i in range(len(varrefs2)): for i in range(len(varrefs2)):
coeffs.append((1 * varrefs2[i], (self.shape2, i)) coeffs.append((1 * varrefs2[i], (self.shape2, i)))
return [(coeffs, self.dist)] return [(coeffs, self.dist)]

View File

@ -16,5 +16,5 @@ class Horizontal(Constraint):
for i in range(len(varrefs1)): for i in range(len(varrefs1)):
coeffs.append((-1 * varrefs1[i], (self.shape1, i))) coeffs.append((-1 * varrefs1[i], (self.shape1, i)))
for i in range(len(varrefs2)): for i in range(len(varrefs2)):
coeffs.append((1 * varrefs2[i], (self.shape2, i)) coeffs.append((1 * varrefs2[i], (self.shape2, i)))
return [(coeffs, self.dist)] return [(coeffs, self.dist)]