From 88187fc1612300510fdcdaead289b533d0617b7b Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sun, 14 Apr 2013 11:00:08 +0100 Subject: [PATCH] TST: Tweak python3 open statement to resolve python2.5 SyntaxError --- fail2ban/tests/filtertestcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/tests/filtertestcase.py b/fail2ban/tests/filtertestcase.py index bc043373..fa9340ca 100644 --- a/fail2ban/tests/filtertestcase.py +++ b/fail2ban/tests/filtertestcase.py @@ -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)