summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Compression
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-10-01 17:59:06 +0200
committerGuillem Jover <guillem@debian.org>2016-10-30 05:19:59 +0100
commit739bb238937e2999feb6b853e5594d89fc981a56 (patch)
treeef2491b8165ea27f0e3ada5d50cdb98a3442c492 /scripts/Dpkg/Compression
parentbc4ceb7af5ee80eb8f13852251f2b351f59ef06d (diff)
downloaddpkg-739bb238937e2999feb6b853e5594d89fc981a56.tar.gz
Dpkg::Compression::FileHandle: Inherit from IO::File instead of FileHandle
Avoid the indirection, and use the more current module.
Diffstat (limited to 'scripts/Dpkg/Compression')
-rw-r--r--scripts/Dpkg/Compression/FileHandle.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Dpkg/Compression/FileHandle.pm b/scripts/Dpkg/Compression/FileHandle.pm
index 9ce717c10..dd9ae6966 100644
--- a/scripts/Dpkg/Compression/FileHandle.pm
+++ b/scripts/Dpkg/Compression/FileHandle.pm
@@ -29,7 +29,7 @@ use Dpkg::Compression::Process;
use Dpkg::Gettext;
use Dpkg::ErrorHandling;
-use parent qw(FileHandle Tie::Handle);
+use parent qw(IO::File Tie::Handle);
# Useful reference to understand some kludges required to
# have the object behave like a filehandle
@@ -103,7 +103,7 @@ and you can't seek on a pipe.
=head1 FileHandle METHODS
-The object inherits from FileHandle so all methods that work on this
+The object inherits from IO::File so all methods that work on this
object should work for Dpkg::Compression::FileHandle too. There
may be exceptions though.
@@ -126,7 +126,7 @@ obviously incompatible with automatic detection of the compression method.
sub new {
my ($this, %args) = @_;
my $class = ref($this) || $this;
- my $self = FileHandle->new();
+ my $self = IO::File->new();
# Tying is required to overload the open functions and to auto-open
# the file on first read/write operation
tie *$self, $class, $self;