From: gfx Date: Sat, 5 Dec 2009 07:05:18 +0000 (+0900) Subject: Fix a PAUSE indexing issue X-Git-Tag: 0.42~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d76a3e9d95f4f092f9862ecd7dcbdcbd2e053519;p=gitmo%2FMouse.git Fix a PAUSE indexing issue --- diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 1355aa7..44d6759 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -140,13 +140,14 @@ BEGIN { # See also MRO::Compat::__get_linear_isa. $get_linear_isa = sub ($;$){ my($classname, $type) = @_; + package # hide from PAUSE + Class::C3; if(!defined $type){ - package Class::C3; our %MRO; $type = exists $MRO{$classname} ? 'c3' : 'dfs'; } return $type eq 'c3' - ? [Class::C3::calculateMRO($classname)] + ? [calculateMRO($classname)] : $_get_linear_isa_dfs->($classname); }; }