osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spread a statement over various lines


On Tue, 17 Sep 2019 20:59:47 +0200
Manfred Lotz <ml_news at posteo.de> wrote:

> I have a function like follows
> 
> def regex_from_filepat(fpat):
>     rfpat = fpat.replace('.', '\\.') \
>                       .replace('%', '.')  \

Not related to my question but the second replace must be:
                  .replace('?', '.')