patchutils.py: Speed improvement for hunk parsing (approximately by a factor of 2).

We don't need to keep the whole line in memory, the first character is sufficient.
Moreover, exception handling is faster in python than explicitly checking for None.