commit | c1c47c166b1012d34f2c6e111ee9ccb5c4d12de7 | [log] [tgz] |
---|---|---|
author | INADA Naoki <methane@users.noreply.github.com> | Thu Oct 05 17:19:26 2017 +0900 |
committer | GitHub <noreply@github.com> | Thu Oct 05 17:19:26 2017 +0900 |
tree | 8abd62a2c34b8c1d6c9aa37b0ab47e216162edcf | |
parent | af810b35b494ef1d255d4bf340b92a9dad446995 [diff] |
bpo-31671: re: Convert RegexFlag to int before compile (GH-3862) sre_compile does bit test (e.g. `flags & SRE_FLAG_IGNORECASE`) in loop. `IntFlag.__and__` and `IntFlag.__new__` made it slower. So this commit convert it to normal int before passing flags to `sre_compile()`.