Skip to content

Commit

Permalink
added specific check for tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Rodriguez committed Mar 13, 2015
1 parent 0c97b3d commit c7af366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functional/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FunctionalSequence(object):
def __init__(self, sequence):
if isinstance(sequence, FunctionalSequence):
self.sequence = sequence._get_base_sequence()
elif isinstance(sequence, list):
elif isinstance(sequence, list) or isinstance(sequence, tuple):
self.sequence = sequence
elif isinstance(sequence, collections.Iterable):
self.sequence = list(sequence)
Expand Down

0 comments on commit c7af366

Please sign in to comment.