Skip to content

Commit

Permalink
Merge pull request #531 from GavinHuttley/develop
Browse files Browse the repository at this point in the history
maintenance
  • Loading branch information
GavinHuttley committed Feb 9, 2020
2 parents b2330b0 + 610d30d commit 0cbd69d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cogent3/core/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ class ByteSequence(Sequence):
"""Used for storing arbitrary bytes."""

def __init__(self, seq="", name=None, info=None, check=False, preserve_case=True):
return super(ByteSequence, self).__init__(
super(ByteSequence, self).__init__(
seq, name=name, info=info, check=check, preserve_case=preserve_case
)

Expand Down Expand Up @@ -1458,8 +1458,8 @@ def __iter__(self):
"""iter returns characters of self, rather than slices."""
if hasattr(self.alphabet, "to_string"):
return iter(self.alphabet.to_string(self._data))
else:
return iter(self.Alpabet.from_indices(self._data))

return iter(self.alpabet.from_indices(self._data))

def tostring(self):
"""to_string delegates to self._data."""
Expand Down

0 comments on commit 0cbd69d

Please sign in to comment.