From ccef0083765abc936c6dc261be808aad711a2166 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 9 Mar 2017 21:06:20 +0100 Subject: [PATCH] Python 2 compatibility. --- jedi/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/common.py b/jedi/common.py index abb271ae..4f47a210 100644 --- a/jedi/common.py +++ b/jedi/common.py @@ -159,7 +159,7 @@ def splitlines(string, keepends=False): also on form feeds. """ if keepends: - lst = string.splitlines(keepends=True) + lst = string.splitlines(True) # We have to merge lines that were broken by form feed characters. merge = []