[Catalyst-commits] r10668 - Catalyst-Runtime/5.80/trunk/lib/Catalyst
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Fri Jun 26 15:26:42 GMT 2009
Author: rafl
Date: 2009-06-26 15:26:42 +0000 (Fri, 26 Jun 2009)
New Revision: 10668
Modified:
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Exception.pm
Log:
Properly clean namespaces in Catalyst::Exception*.
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Exception.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Exception.pm 2009-06-26 14:56:46 UTC (rev 10667)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Exception.pm 2009-06-26 15:26:42 UTC (rev 10668)
@@ -5,7 +5,8 @@
package Catalyst::Exception::Base;
use Moose;
-use Carp ();
+use Carp;
+use namespace::clean -except => 'meta';
=head1 NAME
@@ -41,7 +42,7 @@
local $Carp::CarpLevel = 1;
- Carp::croak($message);
+ croak($message);
}
=head2 meta
@@ -64,13 +65,14 @@
package Catalyst::Exception;
use Moose;
+use namespace::clean -except => 'meta';
+
use vars qw[$CATALYST_EXCEPTION_CLASS];
BEGIN {
extends($CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base');
}
-no Moose;
__PACKAGE__->meta->make_immutable;
1;
More information about the Catalyst-commits
mailing list