From 7a7b6ae575f2c9ab1ffe571bc496bcc5d53b81c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Tue, 7 Sep 2010 15:31:47 +0000 Subject: [PATCH] In translation(): Remove strange spaces in hash key. Found by Dan S. --- modules/Bio/EnsEMBL/Transcript.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/Bio/EnsEMBL/Transcript.pm b/modules/Bio/EnsEMBL/Transcript.pm index ed4f16e13b..eb5f87cd80 100755 --- a/modules/Bio/EnsEMBL/Transcript.pm +++ b/modules/Bio/EnsEMBL/Transcript.pm @@ -646,15 +646,15 @@ sub translation { $self->{'transcript_mapper'} = undef; - } elsif ( !exists( $self->{' translation '} ) + } elsif ( !exists( $self->{'translation'} ) && defined( $self->adaptor() ) ) { - $self->{' translation '} = + $self->{'translation'} = $self->adaptor()->db()->get_TranslationAdaptor() ->fetch_by_Transcript($self); } - return $self->{' translation '}; + return $self->{'translation'}; } ## end sub translation =head2 get_all_alternative_translations -- GitLab