Skip to content

Commit 290278e

Browse files
committed
Tidy import statements
1 parent 091356c commit 290278e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+48
-53
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Revision history for URI
22

33
{{$NEXT}}
4+
- Tidy import statements (GH#80) (Olaf Alders)
45

56
5.05 2020-10-21 13:00:44Z
67
- Bump all versions to 5.05 in order to remove various version mismatches.

lib/URI/WithBase.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package URI::WithBase;
33
use strict;
44
use warnings;
55

6-
use URI;
7-
use Scalar::Util 'blessed';
6+
use URI ();
7+
use Scalar::Util qw(blessed);
88

99
our $VERSION = '5.06';
1010

lib/URI/_idna.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package URI::_idna;
66
use strict;
77
use warnings;
88

9-
use URI::_punycode qw(encode_punycode decode_punycode);
9+
use URI::_punycode qw(decode_punycode encode_punycode);
1010
use Carp qw(croak);
1111

1212
our $VERSION = '5.06';

lib/URI/data.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use parent 'URI';
77

88
our $VERSION = '5.06';
99

10-
use MIME::Base64 qw(encode_base64 decode_base64);
11-
use URI::Escape qw(uri_unescape);
10+
use MIME::Base64 qw(decode_base64 encode_base64);
11+
use URI::Escape qw(uri_unescape);
1212

1313
sub media_type
1414
{

lib/URI/file/Base.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package URI::file::Base;
33
use strict;
44
use warnings;
55

6-
use URI::Escape qw();
6+
use URI::Escape ();
77

88
our $VERSION = '5.06';
99

lib/URI/ldapi.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ our $VERSION = '5.06';
77

88
use parent qw(URI::_ldap URI::_generic);
99

10-
require URI::Escape;
10+
use URI::Escape ();
1111

1212
sub un_path {
1313
my $self = shift;

lib/URI/sip.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use warnings;
1212

1313
use parent qw(URI::_server URI::_userpass);
1414

15-
use URI::Escape qw(uri_unescape);
15+
use URI::Escape ();
1616

1717
our $VERSION = '5.06';
1818

t/abs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ print "1..45\n";
66
# This test the resolution of abs path for all examples given
77
# in the "Uniform Resource Identifiers (URI): Generic Syntax" document.
88

9-
use URI;
9+
use URI ();
1010
my $base = "http://a/b/c/d;p?q";
1111
my $testno = 1;
1212
my @rel_fail;

t/clone.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use warnings;
33

44
print "1..2\n";
55

6-
use URI::URL;
6+
use URI::URL ();
77

88
my $b = URI::URL->new("http://www/");
99

t/data.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use warnings;
33

44
print "1..22\n";
55

6-
use URI;
6+
use URI ();
77

88
my $u = URI->new("data:,A%20brief%20note");
99
print "not " unless $u->scheme eq "data" && $u->opaque eq ",A%20brief%20note";

0 commit comments

Comments
 (0)