bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#62031: 29.0.60; python-mode indentation after re.match


From: Ruijie Yu
Subject: bug#62031: 29.0.60; python-mode indentation after re.match
Date: Wed, 08 Mar 2023 21:23:58 +0800
User-agent: mu4e 1.8.14; emacs 30.0.50

Lele Gaifax <lele@metapensiero.it> writes:

> [...]
>     +    if re.match('^[a-c]+$', string):
>     +        print('yes')
>     +    else:
> [...]

I think you might want to add a variation to this test, like this:

    from re import match
    if match(...): pass

--
Best,


RY





reply via email to

[Prev in Thread] Current Thread [Next in Thread]