On Thu, Jan 02, 2025 at 11:51:20AM +0000, Richard Sandiford wrote:
> Jakub Jelinek <ja...@redhat.com> writes:
> > libgdiagnostics/conf.py breaks update-copyright.py --this-year,
> > which only accepts copyright year in u'' literals in python files,
> > not in ''.
> >
> > u'' strings is what e.g. libgccjit conf.py uses.
> > Tested by building libgdiagnostics docs without/with this patch, the
> > difference is just the expected addition of -2025 in tons of spots,
> > nothing else.
> 
> It'd be good to move all the python scripts over to python 3, so that
> this is no longer necessary.  That's obviously separate work though...

Nothing against that.
My python-fu is very limited though.

Right now update-copyright.py has
'|copyright = u\''
among other parts of regexp, maybe it would be just a matter of adding
'|copyright = \''
too or replacing the u one with the latter and getting rid of u'' strings
plus testing what it breaks/changes.

        Jakub

Reply via email to