mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 10:37:52 +08:00
Python 2 compatibility.
This commit is contained in:
@@ -351,7 +351,7 @@ class FastParser(use_metaclass(CachedFastParser)):
|
|||||||
|
|
||||||
# Split only new lines. Distinction between \r\n is the tokenizer's
|
# Split only new lines. Distinction between \r\n is the tokenizer's
|
||||||
# job.
|
# job.
|
||||||
self._lines = source.splitlines(keepends=True)
|
self._lines = source.splitlines(True)
|
||||||
current_lines = []
|
current_lines = []
|
||||||
is_decorator = False
|
is_decorator = False
|
||||||
current_indent = 0
|
current_indent = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user