Merge pull request #37392 from rallytime/bp-33190

Back-port #33190 to 2015.8
This commit is contained in:
Mike Place 2016-11-02 19:18:13 +13:00 committed by GitHub
commit 7b1d3b5562

View File

@ -730,6 +730,12 @@ def __check_dict_contains(dct, dict_name, keys, comment='', result=True):
def __append_comment(new_comment, current_comment=''):
if current_comment is None and new_comment is None:
return ''
if current_comment is None:
return new_comment
if new_comment is None:
return current_comment
return current_comment+'\n'+new_comment