git-p4.py: support Python 2.5
commit598354c0ad4198daff279c34a96f42e4d91fb4e6
authorBrandon Casey <drafnel@gmail.com>
Sat, 26 Jan 2013 19:14:32 +0000 (26 11:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Jan 2013 03:00:03 +0000 (26 19:00 -0800)
tree02e6f8947cf8af3f89ee82172396765e1aab0c5c
parent5d417842efeafb6e109db7574196901c4e95d273
git-p4.py: support Python 2.5

Python 2.5 and older do not accept None as the first argument to
translate() and complain with:

   TypeError: expected a character buffer object

As suggested by Pete Wyckoff, let's just replace the call to translate()
with a regex search which should be more clear and more portable.

This allows git-p4 to be used with Python 2.5.

Signed-off-by: Brandon Casey <bcasey@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
INSTALL
git-p4.py