summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2012-07-03 07:15:59 (GMT)
committerRaymond Hettinger <python@rcn.com>2012-07-03 07:15:59 (GMT)
commitac5f8467b180671907b24537880eb00ad0bed103 (patch)
tree68f59b06bdecf0b2ddf095eac61fc8719fda378a
parentcf6eac40639ef64fe07a83abd313dab06a45a1e1 (diff)
downloadcpython-ac5f8467b180671907b24537880eb00ad0bed103.zip
cpython-ac5f8467b180671907b24537880eb00ad0bed103.tar.gz
cpython-ac5f8467b180671907b24537880eb00ad0bed103.tar.bz2
Fix keyword argument
-rwxr-xr-xTools/scripts/highlight.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/highlight.py b/Tools/scripts/highlight.py
index 85ce091..a0d3d45 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 = ''