What's the Python2.5 equivalent of Python2.6 translate with None as first param?
- by Thierry Lam
In Python 2.6, I can run the following fine to strip out chars like -()
'(123) 456-7890'.translate(None, '-(), ')
Python2.5 translate does not accept None, how can I do the above in 2.5?