Public bug reported:

Installing software-properties gives

--->
/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197: 
SyntaxWarning: invalid escape sequence '\.'
  elif 
re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$",
 uri) == None:
<---

Marked as "wishlist" importance because Python still passes that to
re.match as '\.' instead of '.', so the behavior is correct, as can be
confirmed with

--->
% python3 -c 'print("\.")'
<string>:1: SyntaxWarning: invalid escape sequence '\.'
\.
<---

** Affects: software-properties (Ubuntu)
     Importance: Wishlist
     Assignee: Nathan Teodosio (nteodosio)
         Status: Triaged

** Description changed:

  Installing software-properties gives
  
  --->
  /usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197: 
SyntaxWarning: invalid escape sequence '\.'
-   elif 
re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$",
 uri) == None:
+   elif 
re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$",
 uri) == None:
  <---
+ 
+ Marked as "wishlist" importance because Python still passes that to
+ re.match as '\.' instead of '.', so the behavior is correct, as can be
+ confirmed with
+ 
+ --->
+ % python3 -c 'print("\.")'
+ <string>:1: SyntaxWarning: invalid escape sequence '\.'
+ \.
+ <---

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/2059412

Title:
  SyntaxWarning: invalid escape sequence '\.'

Status in software-properties package in Ubuntu:
  Triaged

Bug description:
  Installing software-properties gives

  --->
  /usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197: 
SyntaxWarning: invalid escape sequence '\.'
    elif 
re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$",
 uri) == None:
  <---

  Marked as "wishlist" importance because Python still passes that to
  re.match as '\.' instead of '.', so the behavior is correct, as can be
  confirmed with

  --->
  % python3 -c 'print("\.")'
  <string>:1: SyntaxWarning: invalid escape sequence '\.'
  \.
  <---

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2059412/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to