Fix invalid escape sequences#922
Fix invalid escape sequences#922mattrose merged 1 commit intognome-terminator:masterfrom meator:fix-invalid-escape-sequences
Conversation
These escape sequences cause SyntaxWarnings in some environments.
|
Huh, I actually resolved a bunch of them in #886 but apparently I didn't catch them all. I'll pull this down and merge it in, thanks! |
|
How did you get those warnings? I tried to reproduce this on master and I didn't get any SyntaxWarnings at all. did you just run |
|
Gonna merge this in, but still curious as to how you were able to generate those syntax warnings. |
|
I have discovered this issue because the XBPS package manager used by Void Linux has a trigger for byte compiling python packages. There are likely better ways to reproduce this, but I used the following method to reproduce it manually: Older versions of Python do not print these warnings. I used Python 3.12.3. |
|
Hi there @mattrose and everyone. I ran just now into the related issue (#920) on the same OS as the issue creator (Ubuntu 24), with exactly the same logs, and there are a couple of things about this fix that I’d like to better understand. Please excuse me if my questions are stupid, but:
Thanks. |
|
I am not a maintainer nor a contributor of gnome-terminator, but I might still be able to answer some of your questions @mminot-yseop:
This is outside the control of terminator. Ubuntu decides which versions of packages it wishes to ship. To quote the Ubuntu documentation (particularly the backports section, which is only partially relevant here, but I like its description of the versioning process):
I wasn't able to find any terminator 2.1.4 backport for Ubuntu 24.04 "noble", so the only solution which doesn't require manual tinkering with apt repositories is to update to Ubuntu 24.10 "oracular" which provides terminator v2.1.4.
This issue is inconsequential and can be mostly ignored. It's unlikely that it caused the issues you're describing. |
|
Thanks a lot for the detailed answer. |
|
Chiming in here late to say that you can update to the latest version from my PPA here: https://launchpad.net/~mattrose/+archive/ubuntu/terminator |
Hello. I am a Void Linux package maintainer and I have noticed that terminator produces the following syntax warnings when issuing
python3 -m compileall:This pull request fixes them.
It looks like I'm not the only one who has noticed this problem:
resolves #920
@ScottMcCormack Does this pull request fix the issue for you? Your issue is related to version
2.1.3, so the warnings might be slightly different onmaster.