[Jifty-commit] r3159 - jifty/trunk/lib/Jifty/Module

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Apr 19 15:33:15 EDT 2007


Author: audreyt
Date: Thu Apr 19 15:33:13 2007
New Revision: 3159

Modified:
   jifty/trunk/lib/Jifty/Module/Pluggable.pm

Log:
* Jifty::Module::Pluggable - Silence the @ISA warnings. 

Modified: jifty/trunk/lib/Jifty/Module/Pluggable.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Module/Pluggable.pm	(original)
+++ jifty/trunk/lib/Jifty/Module/Pluggable.pm	Thu Apr 19 15:33:13 2007
@@ -52,7 +52,12 @@
     # On success, it expects you to return undef.
 
     local $UNIVERSAL::require::ERROR;
+
+    no warnings; # This is lexical and turns off exactly one warning below -- "Can't locate package in @ISA".
+                 # (for some reason, "no warnings 'syntax'" does not work as advertised here.)
+                 # Note that it does _not_ turn off warnings triggered in the $module itself.
     $module->require(); # We'd prefer to use Jifty::Util->require() here, but it spews crazy warnings
+
     return $UNIVERSAL::require::ERROR;
 } 
 


More information about the Jifty-commit mailing list