Skip to content

Commit 514b80b

Browse files
committed
fix tabs vs spaces in merged code segment
reported by Piotr.Lewczuk@uk-erlangen.de
1 parent 6e0d241 commit 514b80b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch09/knapsackTests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ def __init__(self, totalWeight, totalVolume, totalValue):
255255
def __gt__(self, other):
256256
if self.TotalValue != other.TotalValue:
257257
return self.TotalValue > other.TotalValue
258-
if self.TotalWeight != other.TotalWeight:
259-
return self.TotalWeight < other.TotalWeight
258+
if self.TotalWeight != other.TotalWeight:
259+
return self.TotalWeight < other.TotalWeight
260260
return self.TotalValue < other.TotalValue
261261

262262
def __str__(self):

0 commit comments

Comments
 (0)