mirror of https://github.com/fail2ban/fail2ban
TST: Tweak python3 open statement to resolve python2.5 SyntaxError
parent
d28788c87b
commit
88187fc161
|
@ -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 New Issue