Activity log for bug #2061229

Date Who What changed Old value New value Message
2024-04-13 15:52:12 Egmont Koblinger bug added bug
2024-04-13 15:52:22 Egmont Koblinger summary Prints a bunch of syntax warning Prints a bunch of syntax warnings
2024-04-13 15:52:39 Egmont Koblinger description 24.04 beta, fully updated. Simply start 'itstool'. Notice how it spits out a lot of syntax warning: /usr/bin/itstool:239: SyntaxWarning: invalid escape sequence '\s' if re.sub('\s+', ' ', text).strip() != '': /usr/bin/itstool:337: SyntaxWarning: invalid escape sequence '\s' message = re.sub('\s+', ' ', message).strip() /usr/bin/itstool:475: SyntaxWarning: invalid escape sequence '\s' return re.sub('\s+', ' ', self.locnote).strip() /usr/bin/itstool:477: SyntaxWarning: invalid escape sequence '\s' return '(itstool) link: ' + re.sub('\s+', ' ', self.locnoteref).strip() /usr/bin/itstool:891: SyntaxWarning: invalid escape sequence '\<' regex = re.compile('(.*) \<(.*)\>, (.*)') /usr/bin/itstool:926: SyntaxWarning: invalid escape sequence '\s' if re.sub('\s+', '', prevtext) == '': /usr/bin/itstool:1452: 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 don't know if these invalid escape sequences in turn cause any actual misbehavior. (I noticed these warnings while compiling gnome-terminal. These weren't there in 23.10.) 24.04 beta, fully updated. Simply start 'itstool'. Notice how it spits out a lot of syntax warnings:   /usr/bin/itstool:239: SyntaxWarning: invalid escape sequence '\s'     if re.sub('\s+', ' ', text).strip() != '':   /usr/bin/itstool:337: SyntaxWarning: invalid escape sequence '\s'     message = re.sub('\s+', ' ', message).strip()   /usr/bin/itstool:475: SyntaxWarning: invalid escape sequence '\s'     return re.sub('\s+', ' ', self.locnote).strip()   /usr/bin/itstool:477: SyntaxWarning: invalid escape sequence '\s'     return '(itstool) link: ' + re.sub('\s+', ' ', self.locnoteref).strip()   /usr/bin/itstool:891: SyntaxWarning: invalid escape sequence '\<'     regex = re.compile('(.*) \<(.*)\>, (.*)')   /usr/bin/itstool:926: SyntaxWarning: invalid escape sequence '\s'     if re.sub('\s+', '', prevtext) == '':   /usr/bin/itstool:1452: 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 don't know if these invalid escape sequences in turn cause any actual misbehavior. (I noticed these warnings while compiling gnome-terminal. These weren't there in 23.10.)
2024-04-13 16:15:41 Egmont Koblinger bug watch added https://github.com/itstool/itstool/issues/54