mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Change filter testcases python3 open wrapper to utf-8
This commit is contained in:
parent
46a2b6e428
commit
e28a698c0e
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ from server.failmanager import FailManagerEmpty
|
|||
#
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
open_ = functools.partial(open, errors='ignore')
|
||||
open_ = functools.partial(open, encoding='utf-8', errors='ignore')
|
||||
else:
|
||||
open_ = open
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue