[Jifty-commit] r7124 - Jifty-DBI/trunk/lib/Jifty/DBI
Jifty commits
jifty-commit at lists.jifty.org
Mon Jun 1 15:14:15 EDT 2009
Author: sartak
Date: Mon Jun 1 15:14:15 2009
New Revision: 7124
Modified:
Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm
Log:
Turn on strict and warnings for Jifty::DBI::Schema too
Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm Mon Jun 1 15:14:15 2009
@@ -101,14 +101,17 @@
use Exporter::Lite ();
# TODO - This "sub import" is strictly here to catch the deprecated "length is 40".
-# Once the deprecation cycle is over we should take this away and rever to
-# "use Exporter::Lite" in the line above.
+# Once the deprecation cycle is over we should take the SIGDIE swapping away
my $old_sig_die;
sub import {
no warnings qw( uninitialized numeric );
$old_sig_die ||= $SIG{__DIE__};
$SIG{__DIE__} = \&filter_die unless $SIG{__DIE__} and $SIG{__DIE__} == \&filter_die;
+
+ strict->import;
+ warnings->import;
+
goto &Exporter::Lite::import;
}
More information about the Jifty-commit
mailing list