Serhiy Storchaka wrote:

> On 14.10.16 20:01, Peter Otten wrote:

>>>>> def double_bs(s): return "\\\\".join(s.split("\\"))
>> ...

> Just use s.replace('\\', r'\\').

D'oh!

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to