Python 2.4.2 version of string.replace

Is there a function in python 2.4.2 that works like string.replace? I have code written with Python 2.7 and one line uses the sting.replace attribute but it does not work in 2.4.2. I am trying to run it from a program that requires 2.4.2

swd = swd.replace(year=today.year + 1)  

Thank you!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.