Author Christoph Sarnowski2
Recipients Christoph Sarnowski2, ezio.melotti, mrabarnett
Date 2017-06-21.08:57:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498035463.93.0.0897725262949.issue30722@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3.6, the flags in the "re" module became members of an enum.IntFlag, whereas before they were just ints.

This breaks the regex demo in Tools/demo/redemo.py.

To fix this, in line 86 of redemo.py, 

    getattr(re, name)

has to be replaced by 

    getattr(re, name).value

Also, the checkbox for "LOCALE" can be removed (or fixed), as re.LOCALE is invalid for str patterns.
History
Date User Action Args
2017-06-21 08:57:43Christoph Sarnowski2setrecipients: + Christoph Sarnowski2, ezio.melotti, mrabarnett
2017-06-21 08:57:43Christoph Sarnowski2setmessageid: <1498035463.93.0.0897725262949.issue30722@psf.upfronthosting.co.za>
2017-06-21 08:57:43Christoph Sarnowski2linkissue30722 messages
2017-06-21 08:57:43Christoph Sarnowski2create