File: 2001_avoid_Feature-Compat-Try.patch

package info (click to toggle)
libparser-mgc-perl 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 536 kB
  • sloc: perl: 1,881; makefile: 2; sh: 1
file content (72 lines) | stat: -rw-r--r-- 1,490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Description: avoid perl module Feature::Compat::Try
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2021-09-02
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/Parser/MGC.pm
+++ b/lib/Parser/MGC.pm
@@ -9,7 +9,7 @@
 use warnings;
 
 use Carp;
-use Feature::Compat::Try;
+use Syntax::Keyword::Try;
 
 use Scalar::Util qw( blessed );
 
--- a/examples/eval-expr.pl
+++ b/examples/eval-expr.pl
@@ -6,7 +6,7 @@
 package ExprParser;
 use base qw( Parser::MGC );
 
-use Feature::Compat::Try;
+use Syntax::Keyword::Try;
 
 # An expression is a list of terms, joined by + or - operators
 sub parse
--- a/examples/parse-bencode.pl
+++ b/examples/parse-bencode.pl
@@ -6,7 +6,7 @@
 package BencodeParser;
 use base qw( Parser::MGC );
 
-use Feature::Compat::Try;
+use Syntax::Keyword::Try;
 
 # See also
 #   https://en.wikipedia.org/wiki/Bencode
--- a/examples/parse-dict.pl
+++ b/examples/parse-dict.pl
@@ -6,7 +6,7 @@
 package DictParser;
 use base qw( Parser::MGC );
 
-use Feature::Compat::Try;
+use Syntax::Keyword::Try;
 
 sub parse
 {
--- a/examples/parse-jsonlike.pl
+++ b/examples/parse-jsonlike.pl
@@ -13,7 +13,7 @@
 package JsonlikeParser;
 use base qw( Parser::MGC );
 
-use Feature::Compat::Try;
+use Syntax::Keyword::Try;
 
 sub parse
 {
--- a/examples/parse-pod.pl
+++ b/examples/parse-pod.pl
@@ -6,7 +6,7 @@
 package PodParser;
 use base qw( Parser::MGC );
 
-use Feature::Compat::Try;
+use Syntax::Keyword::Try;
 
 sub parse
 {