]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwstream: use parent.pm and no warnings
authorEric Wong <e@yhbt.net>
Sun, 5 Jul 2020 23:27:42 +0000 (23:27 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Jul 2020 20:01:15 +0000 (20:01 +0000)
parent.pm is leaner than base and we'll rely on `-w' for
warnings during development.

lib/PublicInbox/WwwStream.pm

index 4d82cbb48e03202edf9c3234812444c24f6ebf5b..fd558e1b799bb45c8a86797f6b78d0afdcab483a 100644 (file)
@@ -8,8 +8,7 @@
 # more common "push" model)
 package PublicInbox::WwwStream;
 use strict;
 # more common "push" model)
 package PublicInbox::WwwStream;
 use strict;
-use warnings;
-use base qw(Exporter);
+use parent qw(Exporter);
 our @EXPORT_OK = qw(html_oneshot);
 use bytes (); # length
 use PublicInbox::Hval qw(ascii_html prurl);
 our @EXPORT_OK = qw(html_oneshot);
 use bytes (); # length
 use PublicInbox::Hval qw(ascii_html prurl);