docs: fix automarkup regression on Python 2
authorJonathan Corbet <corbet@lwn.net>
Fri, 30 Oct 2020 15:35:39 +0000 (09:35 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 3 Nov 2020 15:22:00 +0000 (08:22 -0700)
commit4f3e69060dc9cc8f14ad9e172ada7120dc76445b
tree374a37192ab680c88be1d51acd9510b8c41efdbb
parente051955977b7e26124aa8c8398278145f85f94e8
docs: fix automarkup regression on Python 2

It turns out that the Python 2 re module lacks the ASCII flag, so don't try
to use it there.

Fixes: f66e47f98c1e ("docs: automarkup.py: Fix regexes to solve sphinx 3 warnings")
Reported-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/sphinx/automarkup.py