Merge pull request #2077 from FireHost/fix_file_comment_reversed_diff

Fix reversed diff on file.comment
This commit is contained in:
Thomas S Hatch 2012-09-23 19:41:15 -07:00
commit 83c8334101

View File

@ -1680,7 +1680,7 @@ def comment(name, regex, char='#', backup='.bak'):
if slines != nlines:
# Changes happened, add them
ret['changes']['diff'] = (
''.join(difflib.unified_diff(nlines, slines))
''.join(difflib.unified_diff(slines, nlines))
)
if ret['result']: