Control: tags -1 - moreinfo + confirmed On Mon 18 Mar 2024 05:54:25 AM GMT, Julian Gilbey <j...@debian.org> wrote:
On Mon, Mar 18, 2024 at 05:48:14AM +0000, Julian Gilbey wrote:I was building or testing a package using sbuild or autopkgtest using lxc, I don't remember which. One of the dependencies was dot2tex, so it was being installed on a clean chroot (or equivalent). The warnings appeared during the dpkg installation of the package (probably during the configure step).But either way, all of these are, indeed, syntax errors and need to be corrected. (It turns out, just looking at the first example on line 1236, that they cannot all be fixed by turning them into raw strings: this string has both '\p', which should be '\\p' (with a literal backslash), and '\n', which presumably is intended as a new line character.Oh, and just to add on to this: I believe that this will become a SyntaxError in Python 3.13 or Python 3.14.
Ok, thanks for clarifying! I was able to reproduce the warnings in Python 3.12: $ python3.12 Python 3.12.2 (main, Mar 3 2024, 09:11:00) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import dot2tex
/usr/lib/python3/dist-packages/dot2tex/dot2tex.py:900: SyntaxWarning: invalid escape sequence '\i' variables['<<gvcols>>'] = "\input{gvcols.tex}" /usr/lib/python3/dist-packages/dot2tex/dot2tex.py:1236: SyntaxWarning: invalid escape sequence '\p' ... They were silent using Python 3.11, which is suppose is why I hadn't seen them before. Doug
signature.asc
Description: PGP signature