Merge pull request #39221 from lvg01/fix-bug-39220

Fix bug 39220
This commit is contained in:
Mike Place 2017-02-09 11:12:28 -07:00 committed by GitHub
commit 52440416ca

View file

@ -1395,7 +1395,7 @@ def _get_line_indent(src, line, indent):
'''
Indent the line with the source line.
'''
if not (indent or line):
if not indent:
return line
idt = []
@ -1598,7 +1598,6 @@ def line(path, content, match=None, mode=None, location=None,
elif mode == 'ensure':
after = after and after.strip()
before = before and before.strip()
content = content and content.strip()
if before and after:
_assert_occurrence(body, before, 'before')