Skip to content

Commit

Permalink
remove six dependancy since we dont support py2
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Apr 4, 2024
1 parent 15d0442 commit eeb8459
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions cgat/SequenceProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import hashlib
import base64
import itertools
import six

from cgat import Genomics as Genomics

Expand Down Expand Up @@ -137,7 +136,7 @@ def loadSequence(self, sequence, seqtype="na"):
SequenceProperties.loadSequence(self, sequence, seqtype)

# do the encryption
h = hashlib.md5(six.b(sequence)).digest()
h = hashlib.md5(sequence.encode()).digest()
# map to printable letters: hid has length 22, so the padded '=' are
# truncated. You have to add them, if you ever want to decode,
# but who would do such a thing :=)
Expand Down
1 change: 0 additions & 1 deletion conda/environments/cgat-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dependencies:
- scikit-learn
- scipy
- setuptools
- six
- sortedcontainers
- bedtools
- grep
Expand Down

0 comments on commit eeb8459

Please sign in to comment.