Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Small fix for previous commit

  • Loading branch information...
commit 33831d2dfece1da78199f0590e2854a61539b579 1 parent c73dae7
Florent Angly authored February 18, 2014
2  Bio/Tools/GuessSeqFormat.pm
@@ -466,7 +466,7 @@ sub guess
466 466
         @lines = split /\n/, $self->{-text};
467 467
     } elsif (defined $self->{-file}) {
468 468
         # If given a filename, open the file.
469  
-        open $fh, $self->{-file} ||
  469
+        open($fh, $self->{-file}) ||
470 470
             $self->throw("Could not open '$self->{-file}' for reading: $!");
471 471
     } elsif (defined $self->{-fh}) {
472 472
         # If given a filehandle, figure out if it's a plain GLOB
2  t/SeqIO/SeqIO.t
@@ -154,6 +154,6 @@ throws_ok {
154 154
 
155 155
 throws_ok {
156 156
     Bio::SeqIO->new(-file => 'foo.bar');
157  
-} qr/Can not open 'foo.bar' for reading:/,
  157
+} qr/Could not open 'foo.bar' for reading:/,
158 158
     'Must pass a real file';
159 159
 

0 notes on commit 33831d2

Please sign in to comment.
Something went wrong with that request. Please try again.