package Cpanel::Easy::Utils::BackwardCompat;

# cpanel - Cpanel/Easy/Utils/BackwardCompat.pm     Copyright(c) 2016 cPanel, Inc.
#                                                            All rights Reserved.
# copyright@cpanel.net                                          http://cpanel.net
# This code is subject to the cpanel license.  Unauthorized copying is prohibited

use strict;
use warnings;

use Cpanel::SafeFile ();

if ( !Cpanel::SafeFile->can('safe_readwrite') ) {
    require Cpanel::SafeFile::RW;
    *Cpanel::SafeFile::safe_readwrite = \&Cpanel::SafeFile::RW::safe_readwrite;
}

1;
