Skip to content

Commit

Permalink
Don't use the .data property, even in comments, since these get picke…
Browse files Browse the repository at this point in the history
…d up by the doctests
  • Loading branch information
Michiel de Hoon committed Aug 28, 2010
1 parent d513a0d commit ea58c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Bio/AlignIO/ClustalIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def write_alignment(self, alignment):
#identifier when output in the file by replacing
#them with underscores:
line = record.id[0:30].replace(" ","_").ljust(36)
line += record.seq.data[cur_char:(cur_char + show_num)]
line += record.seq[cur_char:(cur_char + show_num)].tostring()
output += line + "\n"

# now we need to print out the star info, if we've got it
Expand Down
2 changes: 1 addition & 1 deletion Bio/Seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def data(self) :
>>> from Bio.Seq import Seq
>>> from Bio.Alphabet import generic_dna
>>> my_seq = Seq("ACGT", generic_dna)
>>> str(my_seq) == my_seq.tostring() == my_seq.data == "ACGT"
>>> str(my_seq) == my_seq.tostring() == "ACGT"
True
>>> my_seq.data = "AAAA"
Traceback (most recent call last):
Expand Down

0 comments on commit ea58c44

Please sign in to comment.