Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 514b80b

Browse files
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

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /