1
0
forked from VimPlug/jedi

fix a problem with empty scripts

This commit is contained in:
David Halter
2013-08-21 13:42:18 +04:30
parent 2e8432de21
commit eca786bf0e
2 changed files with 5 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class Script(object):
warnings.warn("Use path instead of source_path.", DeprecationWarning)
path = source_path
lines = source.splitlines()
lines = source.splitlines() or ['']
if source and source[-1] == '\n':
lines.append('')