Your message dated Sat, 17 Feb 2018 06:04:13 +0000
with message-id <[email protected]>
and subject line Bug#878434: fixed in python-debian 0.1.32
has caused the Debian Bug report #878434,
regarding python-debian: Python 3.6 invalid escape sequence deprecation fixes
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
878434: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878434
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-debian
Version: 0.1.30
Severity: minor
Dear Maintainer,
'git am'able patch containing Python 3.6 invalid escape sequence
deprecation fixes is attached.
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
-- 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 python-debian depends on:
ii python 2.7.14-2ubuntu1
ii python-chardet 3.0.4-1
ii python-six 1.10.0-4
Versions of packages python-debian recommends:
ii python-apt 1.4.0~beta3build2
Versions of packages python-debian suggests:
ii gpgv 2.1.15-1ubuntu7
-- no debconf information
>From e7d9998c38c760c4790ba5a2a8025282b633d33f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <[email protected]>
Date: Fri, 13 Oct 2017 20:31:03 +0300
Subject: [PATCH] Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
---
lib/debian/changelog.py | 52 ++++++++++++++++++++++----------------------
lib/debian/deb822.py | 2 +-
lib/debian/debian_support.py | 8 +++----
3 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/lib/debian/changelog.py b/lib/debian/changelog.py
index 1a1debc..81a34a9 100644
--- a/lib/debian/changelog.py
+++ b/lib/debian/changelog.py
@@ -145,7 +145,7 @@ class ChangeBlock(object):
bugs = []
for match in type_re.finditer(changes):
closes_list = match.group(0)
- for match in re.finditer("\d+", closes_list):
+ for match in re.finditer(r"\d+", closes_list):
bugs.append(int(match.group(0)))
return bugs
@@ -202,42 +202,42 @@ class ChangeBlock(object):
return unicode(self).encode(self._encoding)
topline = re.compile(r'^(\w%(name_chars)s*) \(([^\(\) \t]+)\)'
- '((\s+%(name_chars)s+)+)\;'
+ r'((\s+%(name_chars)s+)+)\;'
% {'name_chars': '[-+0-9a-z.]'},
re.IGNORECASE)
-blankline = re.compile('^\s*$')
-change = re.compile('^\s\s+.*$')
-endline = re.compile('^ -- (.*) <(.*)>( ?)((\w+\,\s*)?\d{1,2}\s+\w+\s+'
- '\d{4}\s+\d{1,2}:\d\d:\d\d\s+[-+]\d{4}\s*)$')
-endline_nodetails = re.compile('^ --(?: (.*) <(.*)>( ?)((\w+\,\s*)?\d{1,2}'
- '\s+\w+\s+\d{4}\s+\d{1,2}:\d\d:\d\d\s+[-+]\d{4}'
- '))?\s*$')
-keyvalue= re.compile('^([-0-9a-z]+)=\s*(.*\S)$', re.IGNORECASE)
-value_re = re.compile('^([-0-9a-z]+)((\s+.*)?)$', re.IGNORECASE)
+blankline = re.compile(r'^\s*$')
+change = re.compile(r'^\s\s+.*$')
+endline = re.compile(r'^ -- (.*) <(.*)>( ?)((\w+\,\s*)?\d{1,2}\s+\w+\s+'
+ r'\d{4}\s+\d{1,2}:\d\d:\d\d\s+[-+]\d{4}\s*)$')
+endline_nodetails = re.compile(r'^ --(?: (.*) <(.*)>( ?)((\w+\,\s*)?\d{1,2}'
+ r'\s+\w+\s+\d{4}\s+\d{1,2}:\d\d:\d\d\s+[-+]\d{4}'
+ r'))?\s*$')
+keyvalue= re.compile(r'^([-0-9a-z]+)=\s*(.*\S)$', re.IGNORECASE)
+value_re = re.compile(r'^([-0-9a-z]+)((\s+.*)?)$', re.IGNORECASE)
xbcs_re = re.compile('^X[BCS]+-', re.IGNORECASE)
-emacs_variables = re.compile('^(;;\s*)?Local variables:', re.IGNORECASE)
+emacs_variables = re.compile(r'^(;;\s*)?Local variables:', re.IGNORECASE)
vim_variables = re.compile('^vim:', re.IGNORECASE)
-cvs_keyword = re.compile('^\$\w+:.*\$')
-comments = re.compile('^\# ')
-more_comments = re.compile('^/\*.*\*/')
-closes = re.compile('closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*',
+cvs_keyword = re.compile(r'^\$\w+:.*\$')
+comments = re.compile(r'^\# ')
+more_comments = re.compile(r'^/\*.*\*/')
+closes = re.compile(r'closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*',
re.IGNORECASE)
-closeslp = re.compile('lp:\s+\#\d+(?:,\s*\#\d+)*', re.IGNORECASE)
+closeslp = re.compile(r'lp:\s+\#\d+(?:,\s*\#\d+)*', re.IGNORECASE)
-old_format_re1 = re.compile('^(\w+\s+\w+\s+\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}'
- '\s+[\w\s]*\d{4})\s+(.*)\s+(<|\()(.*)(\)|>)')
-old_format_re2 = re.compile('^(\w+\s+\w+\s+\d{1,2},?\s*\d{4})\s+(.*)'
- '\s+(<|\()(.*)(\)|>)')
-old_format_re3 = re.compile('^(\w[-+0-9a-z.]*) \(([^\(\) \t]+)\)\;?',
+old_format_re1 = re.compile(r'^(\w+\s+\w+\s+\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}'
+ r'\s+[\w\s]*\d{4})\s+(.*)\s+(<|\()(.*)(\)|>)')
+old_format_re2 = re.compile(r'^(\w+\s+\w+\s+\d{1,2},?\s*\d{4})\s+(.*)'
+ r'\s+(<|\()(.*)(\)|>)')
+old_format_re3 = re.compile(r'^(\w[-+0-9a-z.]*) \(([^\(\) \t]+)\)\;?',
re.IGNORECASE)
-old_format_re4 = re.compile('^([\w.+-]+)(-| )(\S+) Debian (\S+)',
+old_format_re4 = re.compile(r'^([\w.+-]+)(-| )(\S+) Debian (\S+)',
re.IGNORECASE)
old_format_re5 = re.compile('^Changes from version (.*) to (.*):',
re.IGNORECASE)
-old_format_re6 = re.compile('^Changes for [\w.+-]+-[\w.+-]+:?\s*$',
+old_format_re6 = re.compile(r'^Changes for [\w.+-]+-[\w.+-]+:?\s*$',
re.IGNORECASE)
-old_format_re7 = re.compile('^Old Changelog:\s*$', re.IGNORECASE)
-old_format_re8 = re.compile('^(?:\d+:)?\w[\w.+~-]*:?\s*$')
+old_format_re7 = re.compile(r'^Old Changelog:\s*$', re.IGNORECASE)
+old_format_re8 = re.compile(r'^(?:\d+:)?\w[\w.+~-]*:?\s*$')
class Changelog(object):
diff --git a/lib/debian/deb822.py b/lib/debian/deb822.py
index 26f4b68..ab4d41c 100644
--- a/lib/debian/deb822.py
+++ b/lib/debian/deb822.py
@@ -643,7 +643,7 @@ class Deb822(Deb822Dict):
gpgre = re.compile(br'^-----(?P<action>BEGIN|END) PGP
(?P<what>[^-]+)-----[\r\t ]*$')
# Include whitespace-only lines in blank lines to split paragraphs.
# (see #715558)
- blank_line = re.compile(b'^\s*$')
+ blank_line = re.compile(br'^\s*$')
first_line = True
for line in sequence:
diff --git a/lib/debian/debian_support.py b/lib/debian/debian_support.py
index 143f8a9..9e56d8c 100644
--- a/lib/debian/debian_support.py
+++ b/lib/debian/debian_support.py
@@ -220,9 +220,9 @@ class AptPkgVersion(BaseVersion):
class NativeVersion(BaseVersion):
"""Represents a Debian package version, with native Python comparison"""
- re_all_digits_or_not = re.compile("\d+|\D+")
- re_digits = re.compile("\d+")
- re_digit = re.compile("\d")
+ re_all_digits_or_not = re.compile(r"\d+|\D+")
+ re_digits = re.compile(r"\d+")
+ re_digit = re.compile(r"\d")
re_alpha = re.compile("[A-Za-z]")
def _compare(self, other):
@@ -595,7 +595,7 @@ def update_file(remote, local, verbose=None):
import urllib
index_name = remote + '.diff/Index'
- re_whitespace=re.compile('\s+')
+ re_whitespace=re.compile(r'\s+')
try:
index_url = urllib.urlopen(index_name)
--
2.14.1
--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.32
We believe that the bug you reported is fixed in the latest version of
python-debian, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stuart Prescott <[email protected]> (supplier of updated python-debian package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 17 Feb 2018 16:37:18 +1100
Source: python-debian
Binary: python-debian python3-debian
Architecture: source
Version: 0.1.32
Distribution: unstable
Urgency: medium
Maintainer: Debian python-debian Maintainers
<[email protected]>
Changed-By: Stuart Prescott <[email protected]>
Description:
python-debian - Python modules to work with Debian-related data formats
python3-debian - Python 3 modules to work with Debian-related data formats
Closes: 862058 878434 878435
Changes:
python-debian (0.1.32) unstable; urgency=medium
.
* Fix regexps that are invalid escape sequences with Python 3.6, with thanks
to Ville Skyttä <[email protected]> for the patch (Closes: #878434).
* Fix spelling errors, with thanks to Ville Skyttä <[email protected]>
for the patch (Closes: #878435).
* Add additional documentation about how python-apt is used, with thanks to
Matthieu Caneill <[email protected]> for the patch (Closes: #862058).
* Extend Deb822 parser to allow underscores in the field name, with thanks
to Gerhard Poul <[email protected]> for the patch.
* Update Vcs fields to point to salsa.debian.org, with thanks to John Wright
for doing the migration.
* Update Standards-Version to 4.1.3 (no changes required).
Checksums-Sha1:
f8c581584a68a649dbae56a8c28c60c0b964646a 2314 python-debian_0.1.32.dsc
a29c126d93c1217eaf7861133b3586a4b965cfef 296028 python-debian_0.1.32.tar.xz
3ebf664298af21b7dc431f860ad29286f7d3a321 7661
python-debian_0.1.32_amd64.buildinfo
Checksums-Sha256:
06f201cd6d482c06aaa31b77cbb50ee816247e37e2b60324409dec2c9c532c93 2314
python-debian_0.1.32.dsc
5020601b8a8e6fdab07a2717183a1f0b9f4856423ea226a0dd23ef80ec686dd7 296028
python-debian_0.1.32.tar.xz
4dfad34b6b7c7f68c2703b3f2397c9e0aa70e04f7433c238e179a30a09a82d70 7661
python-debian_0.1.32_amd64.buildinfo
Files:
22ac158ec699c67b6358efc27f716b1b 2314 python optional python-debian_0.1.32.dsc
82632d8b5851187b9d5a4c3e9246fcf0 296028 python optional
python-debian_0.1.32.tar.xz
f6d1ec63b6f09fe3cf83465d7535b806 7661 python optional
python-debian_0.1.32_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEkOLSwa0Uaht+u4kdu8F+uxOW8vcFAlqHv+sACgkQu8F+uxOW
8vfhsRAAlaoX3emkvPdiOSJMzH9vrUX/TT02GhXt/aqaY1fgW5yQeW5Wz8urEDU9
RayqJwAcGLOfGFyEMUuQ0jPqCu57k5fW3fonT30Y1jaBmznD2+uA1ZC50oxOkkaH
VNXXHbS5eiNq2HkNA9SU2wvtduqPh3YkbWD6rDFnFpsGW1Za4vviQYfdGjEmNNdc
fiSeeMDTyIrhT1oxinQBcunXbOUiONJb3lv+6zODrU2uZYNq+B1esAizbjPKM+eU
6CxvoOvgYNwRecBT7MSXwvq8/FCKrBQfP/crjmB34gKU51Kpg/m90VrninX5VYaj
mgBJq0ZitLgFRgiRpU846T3xEyl+3USE+xm0YIhU+xbTCMyqMxLgu0C3DCrBfQfB
EBFSVYLZ7k0hsp5P8oUaBI5mhjKoa7DPreWLfptWSAfKrmSl8GsNGHlfFCWboxxe
RSWrZ51FCb4+H9OtCeNkCVnfS5+b2fn+U+dfEdCpi5Iu0vR1nZ/tgaO4azaC+kaz
p3R9/iTyquOtbp4yIpM2ZK+WFnfhDfOhJg62Vwtzmb1ce/TmfzXdTzIcAXvkYSmt
fpmaMznfhv9gnaLuKE9n0F5x7G3ErkRYxE6Iqym9/QidSHq7Q+gQYf1q6dJZHiiP
HvRS/HEW3ASY736PssfXv1fcEA8ti72NDaoWHVMrUlsqt/1QcLE=
=LoNC
-----END PGP SIGNATURE-----
--- End Message ---
--
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-python-debian-maint