How `diff.changes` can become `None`?
xged opened this issue · comments
Julius Gedvilas commented
Thomas Grainger commented
@xged here's how:
>>> next(whatthepatch.parse_patch('--- a\n+++ b\n '))
diff(header=header(index_path=None, old_path='a', old_version=None, new_path='b', new_version=None), changes=None, text='--- a\n+++ b\n \n')
>>>
Christopher Corley commented
Yes, @graingert is correct.
Would it make more sense to initialize changes to an empty list?
Christopher Corley commented
Closing, no response