mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-27 00:43:17 +08:00
Python 2 compatibility.
This commit is contained in:
1 parent
c7a74e6d1c
commit
ccef008376
1 file changed
+1
-1
+1
-1
@@ -159,7 +159,7 @@ def splitlines(string, keepends=False):
|
|||||||
also on form feeds.
|
also on form feeds.
|
||||||
"""
|
"""
|
||||||
if keepends:
|
if keepends:
|
||||||
lst = string.splitlines(keepends=True)
|
lst = string.splitlines(True)
|
||||||
|
|
||||||
# We have to merge lines that were broken by form feed characters.
|
# We have to merge lines that were broken by form feed characters.
|
||||||
merge = []
|
merge = []
|
||||||
|
|||||||
Reference in new issue
Block a user