Skip to content

Commit

Permalink
re-order statements for Python parse order
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Nov 10, 2014
1 parent 5d2d5bd commit 78ef1ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
import random
import threading

# data types
Proposal = namedtuple('Proposal', ['caller', 'client_id', 'input'])
Ballot = namedtuple('Ballot', ['n', 'leader'])

# message types
Accepted = namedtuple('Accepted', ['slot', 'ballot_num'])
Accept = namedtuple('Accept', ['slot', 'ballot_num', 'proposal'])
Expand Down Expand Up @@ -34,10 +38,6 @@
NULL_BALLOT = Ballot(-1, -1) # sorts before all real ballots
NOOP_PROPOSAL = Proposal(None, None, None) # no-op to fill otherwise empty slots

# data types
Proposal = namedtuple('Proposal', ['caller', 'client_id', 'input'])
Ballot = namedtuple('Ballot', ['n', 'leader'])

class Component(object):

def __init__(self, node):
Expand Down

0 comments on commit 78ef1ca

Please sign in to comment.