[SCM] libtype-tiny-perl Debian packaging branch, master, updated. debian/0.016-1-48-ga7f6748
Toby Inkster
mail at tobyinkster.co.uk
Mon Jul 29 12:55:03 UTC 2013
The following commit has been merged in the master branch:
commit aca25c0154bae060711da6ddbcf991c182a2ceaf
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Fri Jul 19 21:26:50 2013 +0100
support older versions of B::Deparse without the ambient_pragmas method
diff --git a/lib/Type/Exception/Assertion.pm b/lib/Type/Exception/Assertion.pm
index accdbfb..a92f43a 100644
--- a/lib/Type/Exception/Assertion.pm
+++ b/lib/Type/Exception/Assertion.pm
@@ -122,7 +122,7 @@ sub _codefor
$b ||= do {
require B::Deparse;
my $tmp = "B::Deparse"->new;
- $tmp->ambient_pragmas(strict => "all", warnings => "all");
+ $tmp->ambient_pragmas(strict => "all", warnings => "all") if $tmp->can('ambient_pragmas');
$tmp;
};
--
libtype-tiny-perl Debian packaging
More information about the Pkg-perl-cvs-commits
mailing list