Clean IO::Socket imports from Catalyst::Request.
Florian Ragwitz [Sun, 8 Feb 2009 19:24:57 +0000 (19:24 +0000)]
lib/Catalyst/Request.pm

index f0b26ff..c859fd2 100644 (file)
@@ -10,6 +10,8 @@ use HTTP::Headers;
 
 use Moose;
 
+use namespace::clean -except => 'meta';
+
 with 'MooseX::Emulate::Class::Accessor::Fast';
 
 has action => (is => 'rw');
@@ -119,8 +121,6 @@ has hostname => (
 
 has _path => ( is => 'rw', predicate => '_has_path', clearer => '_clear_path' );
 
-no Moose;
-
 sub args            { shift->arguments(@_) }
 sub body_params     { shift->body_parameters(@_) }
 sub input           { shift->body(@_) }