mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-03 17:57:30 +08:00
Refactor splitlines -> split_lines.
This commit is contained in:
1 parent
476d5fb0d1
commit
ab027885c7
8 files changed
+30
-30
No files matched your search
+2
-2
@@ -6,7 +6,7 @@ import pytest
|
||||
from parso._compatibility import u
|
||||
from parso import parse
|
||||
from parso.python import tree
|
||||
from parso.utils import splitlines
|
||||
from parso.utils import split_lines
|
||||
|
||||
|
||||
def test_basic_parsing(each_version):
|
||||
@@ -153,7 +153,7 @@ def test_open_string_literal(each_version, code):
|
||||
"""
|
||||
Testing mostly if removing the last newline works.
|
||||
"""
|
||||
lines = splitlines(code, keepends=True)
|
||||
lines = split_lines(code, keepends=True)
|
||||
end_pos = (len(lines), len(lines[-1]))
|
||||
module = parse(code, version=each_version)
|
||||
assert module.get_code() == code
|
||||
|
||||
Reference in new issue
Block a user