py3: catch TypeError during template operations
Two places in this code Python 3 changed from raising ValueError
to TypeError. So catch the addition exceptions.
IMO this code might be better off performing type sniffing. But
I'm not sure the implications of changing that.
Differential Revision: https://phab.mercurial-scm.org/D2156
#require clang-libfuzzer test-repo
$ cd $TESTDIR/../contrib/fuzz
$ make
Just run the fuzzer for five seconds to verify it works at all.
$ ./bdiff -max_total_time 5