Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921725 - dev-util/itstool with python3.12 - SyntaxWarning: invalid escape sequence
Summary: dev-util/itstool with python3.12 - SyntaxWarning: invalid escape sequence
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 921826
  Show dependency tree
 
Reported: 2024-01-10 19:21 UTC by Mike Gilbert
Modified: 2024-01-28 22:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2024-01-10 19:21:28 UTC
Testing with python3.12, I get the warnings below.

> [10/33] /usr/bin/itstool -m help/manual/bn_IN/gtk-doc-manual-bn_IN.gmo --lang bn_IN -o help/manual/bn_IN ../gtk-doc-1.33.2/help/manual/C/index.docbook ../gtk-doc-1.33.2/help/manual/C/fdl-appendix.xml
> /usr/bin/itstool:223: SyntaxWarning: invalid escape sequence '\s'
>   if re.sub('\s+', ' ', text).strip() != '':
> /usr/bin/itstool:321: SyntaxWarning: invalid escape sequence '\s'
>   message = re.sub('\s+', ' ', message).strip()
> /usr/bin/itstool:459: SyntaxWarning: invalid escape sequence '\s'
>   return re.sub('\s+', ' ', self.locnote).strip()
> /usr/bin/itstool:461: SyntaxWarning: invalid escape sequence '\s'
>   return '(itstool) link: ' + re.sub('\s+', ' ', self.locnoteref).strip()
> /usr/bin/itstool:892: SyntaxWarning: invalid escape sequence '\<'
>   regex = re.compile('(.*) \<(.*)\>, (.*)')
> /usr/bin/itstool:927: SyntaxWarning: invalid escape sequence '\s'
>   if re.sub('\s+', '', prevtext) == '':
> /usr/bin/itstool:1473: SyntaxWarning: invalid escape sequence '\.'
>   _locale_pattern = re.compile('([a-zA-Z0-9-]+)(_[A-Za-z0-9]+)?(@[A-Za-z0-9]+)?(\.[A-Za-z0-9]+)?')
Comment 2 Larry the Git Cow gentoo-dev 2024-01-28 22:14:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abd182e67840a9078e7f19bc2b6ba6b4ae039fdf

commit abd182e67840a9078e7f19bc2b6ba6b4ae039fdf
Author:     Chris Mayo <aklhfex@gmail.com>
AuthorDate: 2024-01-21 19:38:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-28 22:10:33 +0000

    dev-util/itstool: enable py3.12
    
    Closes: https://bugs.gentoo.org/921725
    Signed-off-by: Chris Mayo <aklhfex@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34946
    Signed-off-by: Sam James <sam@gentoo.org>

 .../itstool/files/itstool-2.0.7-raw-string.patch   | 74 ++++++++++++++++++++++
 dev-util/itstool/itstool-2.0.7-r2.ebuild           | 38 +++++++++++
 2 files changed, 112 insertions(+)