TST: Tweak python3 open statement to resolve python2.5 SyntaxError

pull/171/head
Steven Hiscocks 2013-04-14 11:00:08 +01:00
parent d28788c87b
commit 88187fc161
1 changed files with 1 additions and 1 deletions

View File

@ -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)