mirror of https://github.com/fail2ban/fail2ban
Change filter testcases python3 open wrapper to utf-8
parent
46a2b6e428
commit
e28a698c0e
|
@ -40,7 +40,7 @@ from server.failmanager import FailManagerEmpty
|
||||||
#
|
#
|
||||||
|
|
||||||
if sys.version_info >= (3,):
|
if sys.version_info >= (3,):
|
||||||
open_ = functools.partial(open, errors='ignore')
|
open_ = functools.partial(open, encoding='utf-8', errors='ignore')
|
||||||
else:
|
else:
|
||||||
open_ = open
|
open_ = open
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue