[MacPorts] #70527: itstool @2.0.7_2+python312: SyntaxWarning: invalid escape sequence
MacPorts
noreply at macports.org
Sun Aug 11 10:19:51 UTC 2024
#70527: itstool @2.0.7_2+python312: SyntaxWarning: invalid escape sequence
---------------------------+---------------------
Reporter: christophecvr | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.99
Keywords: | Port: itstool
---------------------------+---------------------
Since the use off python ver 312 a lot of warning messages appear during
build. A extract off those messages here: \
{{{
[319/322] /opt/local/bin/itstool -m help/uk/gedit-uk.gmo --lang uk -o
help/uk ../gedit-3.38.2/help/C/gedit-change-color-scheme.page
../gedit-3.38.2/help/C/gedit-change-default-font.page
../gedit-3.38.2/help/C/gedit-close-file.page ../gedit-3.38.2/help/C/gedit-
create-new-file.page ../gedit-3.38.2/help/C/gedit-edit-as-root.page
../gedit-3.38.2/help/C/gedit-files-basic.page ../gedit-3.38.2/help/C
/gedit-full-screen.page ../gedit-3.38.2/help/C/gedit-open-files-from-
sidepane.page ../gedit-3.38.2/help/C/gedit-open-files.page
../gedit-3.38.2/help/C/gedit-open-on-server.page ../gedit-3.38.2/help/C
/gedit-open-recent.page ../gedit-3.38.2/help/C/gedit-plugin-guide.page
../gedit-3.38.2/help/C/gedit-plugins-change-case.page
../gedit-3.38.2/help/C/gedit-plugins-doc-stats.page ../gedit-3.38.2/help/C
/gedit-plugins-external-tools.page ../gedit-3.38.2/help/C/gedit-plugins-
file-browser.page ../gedit-3.38.2/help/C/gedit-plugins-insert-date-
time.page ../gedit-3.38.2/help/C/gedit-plugins-install.page
../gedit-3.38.2/help/C/gedit-plugins-modelines.page ../gedit-3.38.2/help/C
/gedit-plugins-pyconsole.page ../gedit-3.38.2/help/C/gedit-plugins-quick-
open.page ../gedit-3.38.2/help/C/gedit-plugins-snippets.page
../gedit-3.38.2/help/C/gedit-plugins-sort.page ../gedit-3.38.2/help/C
/gedit-printing-order.page ../gedit-3.38.2/help/C/gedit-printing.page
../gedit-3.38.2/help/C/gedit-printing-select.page ../gedit-3.38.2/help/C
/gedit-quickstart.page ../gedit-3.38.2/help/C/gedit-replace.page
../gedit-3.38.2/help/C/gedit-save-file.page ../gedit-3.38.2/help/C/gedit-
search.page ../gedit-3.38.2/help/C/gedit-spellcheck.page
../gedit-3.38.2/help/C/gedit-syntax-highlighting.page
../gedit-3.38.2/help/C/gedit-tab-groups.page ../gedit-3.38.2/help/C/gedit-
tabs-moving.page ../gedit-3.38.2/help/C/gedit-tabs.page
../gedit-3.38.2/help/C/gedit-undo-redo.page
../gedit-3.38.2/help/C/index.page ../gedit-3.38.2/help/C/legal.xml
/opt/local/bin/itstool:223: SyntaxWarning: invalid escape sequence '\s'
if re.sub('\s+', ' ', text).strip() != '':
/opt/local/bin/itstool:321: SyntaxWarning: invalid escape sequence '\s'
message = re.sub('\s+', ' ', message).strip()
/opt/local/bin/itstool:459: SyntaxWarning: invalid escape sequence '\s'
return re.sub('\s+', ' ', self.locnote).strip()
/opt/local/bin/itstool:461: SyntaxWarning: invalid escape sequence '\s'
return '(itstool) link: ' + re.sub('\s+', ' ', self.locnoteref).strip()
/opt/local/bin/itstool:892: SyntaxWarning: invalid escape sequence '\<'
regex = re.compile('(.*) \<(.*)\>, (.*)')
/opt/local/bin/itstool:927: SyntaxWarning: invalid escape sequence '\s'
if re.sub('\s+', '', prevtext) == '':
/opt/local/bin/itstool:1471: SyntaxWarning: invalid escape sequence '\.'
_locale_pattern =
re.compile('([a-zA-Z0-9-]+)(_[A-Za-z0-9]+)?(@[A-Za-z0-9]+)?(\.[A-Za-z0-9]+)?')
}}}
I did find how to solve the issue and will post soon a pull request to
macports-ports master with the solution for py312 its tool build.
--
Ticket URL: <https://trac.macports.org/ticket/70527>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list