diff options
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r-- | tests/test_examplefiles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py index 57d17033..baf6978a 100644 --- a/tests/test_examplefiles.py +++ b/tests/test_examplefiles.py @@ -40,7 +40,7 @@ def test_example_files(): yield check_lexer, lx, absfn def check_lexer(lx, absfn): - text = file(absfn, 'U').read() + text = open(absfn, 'U').read() text = text.strip('\n') + '\n' try: text = text.decode('utf-8') |