]> Sergey Matveev's repositories - public-inbox.git/commitdiff
spawn: modernize with parent.pm, drop warnings.pm
authorEric Wong <e@yhbt.net>
Wed, 1 Jul 2020 21:06:16 +0000 (21:06 +0000)
committerEric Wong <e@yhbt.net>
Thu, 2 Jul 2020 20:36:18 +0000 (20:36 +0000)
parent.pm is smaller than base.pm, and we'll also move
towards relying on `-w' (or not) to toggle process-wide
warnings during development.

lib/PublicInbox/Spawn.pm

index ba6e73675fe4a50483b6f1606e917ea702aa4511..c85b68003ac0835bc89e2f8781fa9f14e62450d0 100644 (file)
@@ -13,8 +13,7 @@
 
 package PublicInbox::Spawn;
 use strict;
-use warnings;
-use base qw(Exporter);
+use parent qw(Exporter);
 use Symbol qw(gensym);
 use PublicInbox::ProcessPipe;
 our @EXPORT_OK = qw/which spawn popen_rd/;