Skip to content

Commit

Permalink
bump XML::XPath dependency. remove namespace_uri override
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Apr 28, 2021
1 parent 3ba1c8b commit 00cbfb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion cpanfile
Expand Up @@ -6,7 +6,7 @@ requires 'LWP::UserAgent';
requires 'MIME::Base64';
requires 'URI';
requires 'XML::LibXML', '2.0202';
requires 'XML::XPath';
requires 'XML::XPath', '1.20';
requires 'perl', '5.008001';

on build => sub {
Expand Down
11 changes: 0 additions & 11 deletions lib/XML/Atom.pm
Expand Up @@ -19,17 +19,6 @@ BEGIN {
} else {
*{XML::Atom::DATETIME} = sub() {0};
}

local $^W = 0;
*XML::XPath::Function::namespace_uri = sub {
my $self = shift;
my($node, @params) = @_;
my $ns = $node->getNamespace($node->getPrefix);
if (!$ns) {
$ns = ($node->getNamespaces)[0];
}
XML::XPath::Literal->new($ns ? $ns->getExpanded : '');
};

$XML::Atom::ForceUnicode = 0;
$XML::Atom::DefaultVersion = 0.3;
Expand Down

0 comments on commit 00cbfb8

Please sign in to comment.