[Reportbug-commits] [reportbug] 12/38: Python 3.6 invalid escape sequence deprecation fixes
Sandro Tosi
morph at moszumanska.debian.org
Fri Dec 29 04:33:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit e51a7c1c691ea5bcc2645b3ccd99b19e49b82979
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Fri Oct 13 20:48:34 2017 +0300
Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
---
bin/querybts | 4 ++--
bin/reportbug | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/querybts b/bin/querybts
index 1581d63..6f98e72 100755
--- a/bin/querybts
+++ b/bin/querybts
@@ -141,7 +141,7 @@ def main():
package = args[0]
- m = re.match('^#?(\d+)$', package)
+ m = re.match(r'^#?(\d+)$', package)
if m:
num = int(m.group(1))
url = debbugs.get_report_url(options.system, num, options.mirrors, options.archived)
@@ -158,7 +158,7 @@ def main():
for bugnum in args:
package = bugnum
- m = re.match('^#?(\d+)$', bugnum)
+ m = re.match(r'^#?(\d+)$', bugnum)
if not m:
mboxbuglist = ui.handle_bts_query(package, options.system, options.timeout, options.mirrors,
options.http_proxy, queryonly=True, title=VERSION,
diff --git a/bin/reportbug b/bin/reportbug
index 7eda598..9c91b43 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -1974,7 +1974,7 @@ For more details, please see: http://www.debian.org/devel/wnpp/''')
'directive that it violates (E.g., "1.2.3")? '
'Just type "unknown" if you are not sure (that would '
'downgrade severity to normal).', force_prompt=True)
- if re.match('[0-9]+\.[0-9.]+', justification):
+ if re.match(r'[0-9]+\.[0-9.]+', justification):
justification = 'Policy ' + justification
elif not justification:
justification = 'unknown'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list