Skip to content
Snippets Groups Projects
Commit 32c599be authored by Javier Herrero's avatar Javier Herrero
Browse files

Added $subname in the key of the DEPRECATED hash. Useful when calling several...

Added $subname in the key of the DEPRECATED hash. Useful when calling several methods from the same line like when using the Bio::EnsEMBL::Test::TestUtils::test_getter_setter method.
parent 83d66c53
No related branches found
No related tags found
No related merge requests found
...@@ -436,7 +436,7 @@ sub deprecate { ...@@ -436,7 +436,7 @@ sub deprecate {
#keep track of who called this method so that the warning is only displayed #keep track of who called this method so that the warning is only displayed
#once per deprecated call #once per deprecated call
return if $DEPRECATED{"$line:$file"}; return if $DEPRECATED{"$line:$file:$subname"};
if($VERBOSITY > -1) { if($VERBOSITY > -1) {
print STDERR "\n------------------ DEPRECATED ---------------------\n" . print STDERR "\n------------------ DEPRECATED ---------------------\n" .
...@@ -446,7 +446,7 @@ sub deprecate { ...@@ -446,7 +446,7 @@ sub deprecate {
"---------------------------------------------------\n"; "---------------------------------------------------\n";
} }
$DEPRECATED{"$line:$file"} = 1; $DEPRECATED{"$line:$file:$subname"} = 1;
} }
=head2 try/catch =head2 try/catch
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment