Package: reportbug
Version: 7.1.7ubuntu1
Severity: minor

Dear Maintainer,

'git am'able patch containing Python 3.6 invalid escape sequence
deprecation fixes is attached.


-- Package-specific info:
** Environment settings:
EDITOR="emacs"
PAGER="less"
DEBEMAIL="ville.sky...@iki.fi"
DEBFULLNAME="Ville Skytt\udcc3\udca4"
INTERFACE="text"

** /home/scop/.reportbugrc:
reportbug_version "7.1.7ubuntu1"
mode novice
ui text
smtphost "smtp.gmail.com:587"
smtpuser "vsky...@gmail.com"
smtppasswd <omitted>
smtptls
no-cc

-- System Information:
Debian Release: stretch/sid
  APT prefers artful
  APT policy: (500, 'artful')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-15-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt                1.5
ii  python3            3.6.3-0ubuntu2
ii  python3-reportbug  7.1.7ubuntu1

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                              <none>
pn  debconf-utils                           <none>
pn  debsums                                 <none>
pn  dlocate                                 <none>
ii  emacs25-bin-common                      25.2+1-6
ii  file                                    1:5.32-1
ii  gir1.2-gtk-3.0                          3.22.21-0ubuntu1
ii  gir1.2-vte-2.91                         0.48.4-0ubuntu1
ii  gnupg                                   2.1.15-1ubuntu7
pn  postfix | exim4 | mail-transport-agent  <none>
ii  python3-gi                              3.24.1-2build1
ii  python3-gi-cairo                        3.24.1-2build1
pn  python3-gtkspellcheck                   <none>
pn  python3-urwid                           <none>
ii  xdg-utils                               1.1.1-1ubuntu2

Versions of packages python3-reportbug depends on:
ii  apt                1.5
ii  file               1:5.32-1
ii  python3            3.6.3-0ubuntu2
ii  python3-debian     0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.18.1-1

python3-reportbug suggests no packages.

-- no debconf information
>From dc57ce98d385a4ec65b707934ce1592b0df7879b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.sky...@iki.fi>
Date: Fri, 13 Oct 2017 20:48:34 +0300
Subject: [PATCH] Python 3.6 invalid escape sequence deprecation fixes

https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
---
 reportbug/utils.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/reportbug/utils.py b/reportbug/utils.py
index 8139668..3974018 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -225,7 +225,7 @@ def find_package_for(filename, pathonly=False):
 
     # tries to match also files in /var/lib/dpkg/info/
     if filename.startswith('/var/lib/dpkg/info/'):
-        dpkg_info = re.compile('/var/lib/dpkg/info/(.+)\.[^.]+')
+        dpkg_info = re.compile(r'/var/lib/dpkg/info/(.+)\.[^.]+')
         m = dpkg_info.match(filename)
         # callee want a dict as second pair element...
         packages[m.group(1)] = ''
@@ -749,7 +749,7 @@ def get_debian_release_info():
     dists = []
     output = get_command_output('apt-cache policy 2>/dev/null')
     if output:
-        mre = re.compile('\s+(\d+)\s+.*$\s+release\s.*o=(Ubuntu|Debian|Debian 
Ports),a=([^,]+),', re.MULTILINE)
+        mre = re.compile(r'\s+(\d+)\s+.*$\s+release\s.*o=(Ubuntu|Debian|Debian 
Ports),a=([^,]+),', re.MULTILINE)
         found = {}
         # XXX: When Python 2.4 rolls around, rewrite this
         for match in mre.finditer(output):
@@ -1154,7 +1154,7 @@ def cleanup_msg(dmessage, headers, pseudos, type):
                 continue
             else:
                 # Permit bogus headers in the pseudoheader section
-                headers.append(re.split(':\s+', line, 1))
+                headers.append(re.split(r':\s+', line, 1))
         elif line.strip() != NEWBIELINE:
             message += line + '\n'
 
@@ -1286,7 +1286,7 @@ def check_package_name(pkg):
 
     Returns True if the package name is valid."""
 
-    pkg_re = re.compile('^[a-z0-9][a-z0-9+-\.]+$')
+    pkg_re = re.compile(r'^[a-z0-9][a-z0-9+-\.]+$')
 
     return True if pkg_re.match(pkg) else False
 
-- 
2.14.1

_______________________________________________
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint

Reply via email to