diff options
Diffstat (limited to 'dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch')
-rw-r--r-- | dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch b/dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch deleted file mode 100644 index 72475e0..0000000 --- a/dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From fe3436d65518099d35c643848cba50253abc249c Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Thu, 9 May 2019 14:44:51 +0900 | ||
4 | Subject: [PATCH] To fix build error of xrange. | ||
5 | |||
6 | NameError: name 'xrange' is not defined | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
10 | --- | ||
11 | fail2ban/__init__.py | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/fail2ban/__init__.py b/fail2ban/__init__.py | ||
15 | index fa6dcf7..61789a4 100644 | ||
16 | --- a/fail2ban/__init__.py | ||
17 | +++ b/fail2ban/__init__.py | ||
18 | @@ -82,7 +82,7 @@ strptime("2012", "%Y") | ||
19 | |||
20 | # short names for pure numeric log-level ("Level 25" could be truncated by short formats): | ||
21 | def _init(): | ||
22 | - for i in xrange(50): | ||
23 | + for i in range(50): | ||
24 | if logging.getLevelName(i).startswith('Level'): | ||
25 | logging.addLevelName(i, '#%02d-Lev.' % i) | ||
26 | _init() | ||
27 | -- | ||
28 | 2.7.4 | ||
29 | |||