From 6475e73ac45103dbef28419e6a822aeafb3358ef Mon Sep 17 00:00:00 2001 From: Dmitry Kokorin Date: Mon, 5 Jul 2021 19:04:54 +0300 Subject: [PATCH] Python: rna_transcription fixed --- python/rna-transcription/rna_transcription.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/rna-transcription/rna_transcription.py b/python/rna-transcription/rna_transcription.py index 9d7bcf2..ec7b1f3 100644 --- a/python/rna-transcription/rna_transcription.py +++ b/python/rna-transcription/rna_transcription.py @@ -1,4 +1,4 @@ -RNA_TRANSLATION = ''.maketrans('GCTA', 'CGAU') +RNA_TRANSLATION = str.maketrans('GCTA', 'CGAU') def to_rna(dna_strand): return dna_strand.translate(RNA_TRANSLATION)