mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST: Tweak python3 open statement to resolve python2.5 SyntaxError
This commit is contained in:
parent
d28788c87b
commit
88187fc161
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ def open(*args):
|
|||
# ~50kB buffer should be sufficient for all tests here.
|
||||
args = args + (50000,)
|
||||
if sys.version_info >= (3,):
|
||||
return fopen(*args, encoding='utf-8', errors='ignore')
|
||||
return fopen(*args, **{'encoding': 'utf-8', 'errors': 'ignore'})
|
||||
else:
|
||||
return fopen(*args)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue