summaryrefslogtreecommitdiffstats
path: root/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2019-08-28 08:44:31 -0700
committerArmin Kuster <akuster808@gmail.com>2019-08-28 20:29:11 -0700
commitc83f0682e400475fdd53e4cabda0d6112016eebc (patch)
tree1cbc88c66bbb3e4769e2353da139bc595fbb2b42 /recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch
parent9e40485f6e8ae7858ca857c5f73054db1d2e6c28 (diff)
downloadmeta-security-wip.tar.gz
fail2ban: remove Py2 and updatewip
remove patch included in update fix issues do to python3 fix init file Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch')
-rw-r--r--recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch b/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch
deleted file mode 100644
index 7f0812c..0000000
--- a/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From fe3436d65518099d35c643848cba50253abc249c Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Thu, 9 May 2019 14:44:51 +0900
4Subject: [PATCH] To fix build error of xrange.
5
6NameError: name 'xrange' is not defined
7
8Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
9---
10 fail2ban/__init__.py | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/fail2ban/__init__.py b/fail2ban/__init__.py
14index fa6dcf7..61789a4 100644
15--- a/fail2ban/__init__.py
16+++ b/fail2ban/__init__.py
17@@ -82,7 +82,7 @@ strptime("2012", "%Y")
18
19 # short names for pure numeric log-level ("Level 25" could be truncated by short formats):
20 def _init():
21- for i in xrange(50):
22+ for i in range(50):
23 if logging.getLevelName(i).startswith('Level'):
24 logging.addLevelName(i, '#%02d-Lev.' % i)
25 _init()
26--
272.7.4
28