Jakub Jelinek <ja...@redhat.com> writes:
> Hi!
>
> 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...

Richard

> Committed to trunk as obvious.
>
> 2025-01-02  Jakub Jelinek  <ja...@redhat.com>
>
>       * doc/libgdiagnostics/conf.py: Use u'' instead of '' in
>       project and copyright initialization.
>
> --- gcc/doc/libgdiagnostics/conf.py
> +++ gcc/doc/libgdiagnostics/conf.py
> @@ -6,8 +6,8 @@
>  # -- Project information 
> -----------------------------------------------------
>  # 
> https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
>  
> -project = 'libgdiagnostics'
> -copyright = '2024 Free Software Foundation, Inc.'
> +project = u'libgdiagnostics'
> +copyright = u'2024-2025 Free Software Foundation, Inc.'
>  
>  # -- General configuration 
> ---------------------------------------------------
>  # 
> https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
>
>
>       Jakub

Reply via email to