1
0
forked from VimPlug/jedi

Use split_lines and python_bytes_to_unicode directly.

This commit is contained in:
Dave Halter
2017-09-03 18:38:00 +02:00
17 changed files with 327 additions and 49 deletions

View File

@@ -15,7 +15,7 @@ following functions (sometimes bug-prone):
import difflib
from jedi import common
from parso.utils import python_bytes_to_unicode, split_lines
from parso import python_bytes_to_unicode, split_lines
from jedi.evaluate import helpers
@@ -29,7 +29,7 @@ class Refactoring(object):
def old_files(self):
dct = {}
for old_path, (new_path, old_l, new_l) in self.change_dct.items():
dct[new_path] = '\n'.join(new_l)
dct[old_path] = '\n'.join(old_l)
return dct
def new_files(self):