Skip to content

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Simkovic committed Aug 3, 2017
1 parent da5b55c commit 17c0b32
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions conkit/core/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
__date__ = "03 Aug 2016"
__version__ = "1.0"

import sys

from Bio import pairwise2
from conkit.core._entity import _Entity

Expand Down Expand Up @@ -163,10 +161,7 @@ def seq(self, seq):
@property
def seq_ascii(self):
"""The protein sequence as ASCII-encoded :obj:`str`"""
if sys.version_info >= (3, ):
return self._seq.encode("ascii")
else:
return bytearray(self._seq, "ascii")
return bytearray(self._seq, "ascii")

@property
def seq_len(self):
Expand Down

0 comments on commit 17c0b32

Please sign in to comment.