Re: [PATCH 1/2] git-p4.py: support Python 2.5

2013-01-26 Thread Brandon Casey
On Sat, Jan 26, 2013 at 4:45 AM, Pete Wyckoff wrote: > draf...@gmail.com wrote on Fri, 25 Jan 2013 12:44 -0800: >> Python 2.5 and older do not accept None as the first argument to >> translate() and complain with: >> >>TypeError: expected a character buffer object >> >> Satisfy this older pyth

Re: [PATCH 1/2] git-p4.py: support Python 2.5

2013-01-26 Thread Pete Wyckoff
draf...@gmail.com wrote on Fri, 25 Jan 2013 12:44 -0800: > Python 2.5 and older do not accept None as the first argument to > translate() and complain with: > >TypeError: expected a character buffer object > > Satisfy this older python by calling maketrans() to generate an empty > translation

[PATCH 1/2] git-p4.py: support Python 2.5

2013-01-25 Thread Brandon Casey
Python 2.5 and older do not accept None as the first argument to translate() and complain with: TypeError: expected a character buffer object Satisfy this older python by calling maketrans() to generate an empty translation table and supplying that to translate(). This allows git-p4 to be use