diff options
author | emkael <emkael@tlen.pl> | 2015-10-09 19:46:49 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-10-09 19:46:49 +0200 |
commit | 494e87f7d7ee35f0fac14e93113a608b1164412d (patch) | |
tree | aeb9477d66a90191250eda50a481b929fc45ba99 | |
parent | 02c0145516cb365cce7a8fc8a60ce31488be0e9f (diff) |
* pep8 compliance
-rw-r--r-- | src/bidding_data.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bidding_data.py b/src/bidding_data.py index ca92f0e..db8c4ff 100644 --- a/src/bidding_data.py +++ b/src/bidding_data.py @@ -80,19 +80,19 @@ def parse_bidding_data(bidding_data): *(board_no.split('_') + [bid_counter, bid[7], bid[6]])) return bids + def get_dealer(bidding): """ Returns first player to call in a bidding. """ return bidding[min(bidding.keys())]['direction'] + def get_last_bidder(bidding): """ Returns last player to call in a bidding. """ return bidding[max(bidding.keys())]['direction'] - - class JFRBidding(object): """ Bidding data converter (from BWS data to JFR HTML pages) """ @@ -436,6 +436,7 @@ class JFRBidding(object): 'bidding file %s not used, deleting', unused_file) remove(unused_file) + def main(): """ Program entry point, invoked when __name__ is __main__ """ |