[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201030080056.6cd9d1f8@lwn.net>
Date: Fri, 30 Oct 2020 08:00:56 -0600
From: Jonathan Corbet <corbet@....net>
To: Dafna Hirschfeld <dafna.hirschfeld@...labora.com>
Cc: "NĂcolas F. R. A. Prado" <nfraprado@...tonmail.com>,
Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
lkcamp@...ts.libreplanetbr.org, andrealmeid@...labora.com
Subject: Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3
On Fri, 30 Oct 2020 14:33:52 +0100
Dafna Hirschfeld <dafna.hirschfeld@...labora.com> wrote:
> > +RE_struct = re.compile(r'\b(struct)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
> > +RE_union = re.compile(r'\b(union)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
> > +RE_enum = re.compile(r'\b(enum)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
> > +RE_typedef = re.compile(r'\b(typedef)\s+([a-zA-Z_]\w+)', flags=re.ASCII)
>
> I use ubuntu 18.04, my default python is 2.7,
> when running 'make htmldocs' with that fix I get:
>
> AttributeError: 'module' object has no attribute 'ASCII'
Argh...it seems that re.ASCII is Python3 only.
For the short term, I guess we'll need to hack in some sort of workaround.
The not-so-long-term intent, though, is to leave Python 2 behind.
Thanks for the report,
jon
Powered by blists - more mailing lists