diff options
author | gbrandl <devnull@localhost> | 2008-11-25 21:46:31 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2008-11-25 21:46:31 +0100 |
commit | fcfeeb36e6c4df0cb6b51794be6e5d433f1e5fd9 (patch) | |
tree | 41d045a1fa662d8b07f815daf313fc1ebd739220 /tests/test_cmdline.py | |
parent | ac3e3693639ef5b76b94c7b99f45e053a285c039 (diff) | |
download | pygments-fcfeeb36e6c4df0cb6b51794be6e5d433f1e5fd9.tar.gz |
file() -> open() in tests.
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index eaf1cbfc..68b2d7b7 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -3,7 +3,7 @@ Command line test ~~~~~~~~~~~~~~~~~ - :copyright: 2006-2007 by Georg Brandl. + :copyright: 2006-2008 by Georg Brandl. :license: BSD, see LICENSE for more details. """ @@ -87,7 +87,7 @@ class CmdLineTest(unittest.TestCase): from pygments.lexers import PythonLexer from pygments.formatters import HtmlFormatter filename = TESTFILE - code = file(filename).read() + code = open(filename).read() output = highlight(code, PythonLexer(), HtmlFormatter()) |