From 02030f199429b1213bbd027ed79494c788bca3ed Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Mon, 30 Oct 2017 17:43:15 +0100 Subject: [PATCH] load POSIX module correctly, only where needed --- bin/account-manager-client.pl | 1 - bin/account-manager-web.pl | 2 -- lib/IdPAccountManager/AuthenticationToken.pm | 1 + lib/IdPAccountManager/TestAccount.pm | 1 + lib/IdPAccountManager/Tools.pm | 1 + 5 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/account-manager-client.pl b/bin/account-manager-client.pl index 2c3d7fc..c5303de 100755 --- a/bin/account-manager-client.pl +++ b/bin/account-manager-client.pl @@ -12,7 +12,6 @@ use utf8; use lib qw(lib conf); use Getopt::Long qw(:config auto_help); -use POSIX; use Pod::Usage; use IdPAccountManager::TestAccount; diff --git a/bin/account-manager-web.pl b/bin/account-manager-web.pl index 214baf0..5440184 100755 --- a/bin/account-manager-web.pl +++ b/bin/account-manager-web.pl @@ -17,8 +17,6 @@ use CGI::Util; use Template; use Template::Constants qw( :debug ); -use POSIX; - use IdPAccountManager::TestAccount; use IdPAccountManager::SAMLMetadata; use IdPAccountManager::ServiceProvider; diff --git a/lib/IdPAccountManager/AuthenticationToken.pm b/lib/IdPAccountManager/AuthenticationToken.pm index d5f151d..b59a6d2 100644 --- a/lib/IdPAccountManager/AuthenticationToken.pm +++ b/lib/IdPAccountManager/AuthenticationToken.pm @@ -13,6 +13,7 @@ use IdPAccountManager::Tools; use Conf; use Digest::MD5; +use POSIX qw(strftime); require Exporter; my @ISA = qw(Exporter); diff --git a/lib/IdPAccountManager/TestAccount.pm b/lib/IdPAccountManager/TestAccount.pm index b576747..dea13f1 100644 --- a/lib/IdPAccountManager/TestAccount.pm +++ b/lib/IdPAccountManager/TestAccount.pm @@ -11,6 +11,7 @@ use IdPAccountManager::Data::Testaccount::Manager; use IdPAccountManager::Tools; use Conf; +use POSIX qw(strftime); require Exporter; my @ISA = qw(Exporter); diff --git a/lib/IdPAccountManager/Tools.pm b/lib/IdPAccountManager/Tools.pm index cac1324..61c054d 100644 --- a/lib/IdPAccountManager/Tools.pm +++ b/lib/IdPAccountManager/Tools.pm @@ -11,6 +11,7 @@ use Template::Stash; use Digest::SHA; use Encode; +use POSIX qw(strftime); my %log_levels = ('debug' => 0, 'info' => 1, 'trace' => 1, 'notice' => 2, 'error' => 3); -- GitLab