From f7505e684d1de257f3d4e67feccf35896b8bc7d0 Mon Sep 17 00:00:00 2001 From: "J.Bowman" Date: Wed, 30 May 2018 21:23:54 -0400 Subject: [PATCH] pretty print methods should return the string, not just print --- treys/card.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/treys/card.py b/treys/card.py index 0c03bd7..fc21d3c 100644 --- a/treys/card.py +++ b/treys/card.py @@ -196,7 +196,7 @@ def print_pretty_card(card_int): """ Expects a single integer as input """ - print(Card.int_to_pretty_str(card_int)) + return Card.int_to_pretty_str(card_int) @staticmethod def print_pretty_cards(card_ints): @@ -211,4 +211,4 @@ def print_pretty_cards(card_ints): else: output += str(Card.int_to_pretty_str(c)) + " " - print(output) + return output