Skip to content

Commit

Permalink
Merge pull request #2 from gitblight1/master
Browse files Browse the repository at this point in the history
pretty print methods should return the string, not just print
  • Loading branch information
ihendley authored Aug 21, 2018
2 parents c9cdcee + f7505e6 commit b54138f
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 b54138f

Please sign in to comment.