Skip to content

Commit

Permalink
int is just as good
Browse files Browse the repository at this point in the history
  • Loading branch information
obestwalter committed May 31, 2018
1 parent ca63382 commit e6d9864
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mau_mau/concepts.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import collections
import logging
import random
from numbers import Integral

from mau_mau import exceptions

Expand Down Expand Up @@ -100,7 +99,7 @@ def fetch(self, criterion=None):
if not criterion or criterion == 1:
return self.cards.pop(0)

if isinstance(criterion, Integral):
if isinstance(criterion, int):
return [self.cards.pop(i) for i in range(criterion)]

return self.cards.pop(self.cards.index(criterion))
Expand Down

0 comments on commit e6d9864

Please sign in to comment.