# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1426087563 14400 # Node ID 69e65d1d94af90a6b7a30f10690ca519647b6577 # Parent b5cbd6bdb6115416027fc82341f4a5e11a3481fd maint: keep line lengths to 80 chars diff --git a/optim.py b/optim.py --- a/optim.py +++ b/optim.py @@ -61,8 +61,9 @@ # We first sell the old machine, if any if slot: if machine.day == slot.day: - raise InvalidPlan("Cannot buy two machines on the same day: %d" - % (machine.day)) + raise InvalidPlan( + "Cannot buy two machines on the same day: %d" + % (machine.day)) # Subtract 1, because the machine in the slot cannot # be used the day it's sold. @@ -96,7 +97,8 @@ # Just count in binary to enumerate all plans N = len(machines) if N > 0: - plans = [[y == "1" for y in format(x, "0%db" % N)] for x in range(0, 2**N)] + plans = [[y == "1" for y in format(x, "0%db" % N)] + for x in range(0, 2**N)] else: plans = []