From: Raymond Hettinger Date: Tue, 3 Jul 2012 07:15:59 +0000 (-0700) Subject: Fix keyword argument X-Git-Tag: v3.3.0b2~330 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac5f8467b180671907b24537880eb00ad0bed103;p=thirdparty%2FPython%2Fcpython.git Fix keyword argument --- diff --git a/Tools/scripts/highlight.py b/Tools/scripts/highlight.py index 85ce0919a26a..a0d3d4516244 100755 --- a/Tools/scripts/highlight.py +++ b/Tools/scripts/highlight.py @@ -21,7 +21,7 @@ def escape_range(lines, start, end): def colorize(source): 'Convert Python source code to an HTML fragment with colorized markup' - lines = source.splitlines(keepends=True) + lines = source.splitlines(True) lines.append('') readline = functools.partial(next, iter(lines), '') kind = tok_str = ''