Skip to content

Commit

Permalink
pretty print methods should return the string, not just print
Browse files Browse the repository at this point in the history
  • Loading branch information
gitblight1 committed May 31, 2018
1 parent c9cdcee commit f7505e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions treys/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -211,4 +211,4 @@ def print_pretty_cards(card_ints):
else:
output += str(Card.int_to_pretty_str(c)) + " "

print(output)
return output

0 comments on commit f7505e6

Please sign in to comment.