Public bug reported:

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.)

** Affects: itstool (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: noble

** Summary changed:

- Prints a bunch of syntax warning
+ Prints a bunch of syntax warnings

** Description changed:

  24.04 beta, fully updated.
  
- Simply start 'itstool'. Notice how it spits out a lot of syntax warning:
+ 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]+)?')
+   /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.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2061229

Title:
  Prints a bunch of syntax warnings

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/itstool/+bug/2061229/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to