Return card name from PlayingCardBase.getCardName
getCardName computed PlayingCardGlobals.getCardName(self.value) but never returned it, so it always yielded None. The sibling accessors getRank, getSuit, and getValue all return their value, and no subclass overrides getCardName, so the missing return is clearly an oversight.
This commit is contained in:
parent
a5ecbb8b1e
commit
ac980c0126
|
|
@ -11,7 +11,7 @@ class PlayingCardBase:
|
|||
self.setValue(value)
|
||||
|
||||
def getCardName(self):
|
||||
PlayingCardGlobals.getCardName(self.value)
|
||||
return PlayingCardGlobals.getCardName(self.value)
|
||||
|
||||
def getRank(self):
|
||||
return self.rank
|
||||
|
|
|
|||
Loading…
Reference in New Issue