Re: [PATCH] Python 3.6 invalid escape sequence deprecation fix

2018-01-26 Thread Raphael Hertzog
Hello,

On Thu, 25 Jan 2018, Ville Skyttä wrote:
> -match = re.search('build of (\S+)_', msg.get('Subject'))
> +match = re.search(r'build of (\S+)_', msg.get('Subject'))

Thanks, merged.

-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/



[PATCH] Python 3.6 invalid escape sequence deprecation fix

2018-01-25 Thread Ville Skyttä
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
---
 distro_tracker/vendor/kali/rules.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/distro_tracker/vendor/kali/rules.py 
b/distro_tracker/vendor/kali/rules.py
index 2486569..55d3a81 100644
--- a/distro_tracker/vendor/kali/rules.py
+++ b/distro_tracker/vendor/kali/rules.py
@@ -30,7 +30,7 @@ def classify_message(msg, package, keyword):
 
 # Recognize build logs
 if msg.get('X-Rebuildd-Host'):
-match = re.search('build of (\S+)_', msg.get('Subject'))
+match = re.search(r'build of (\S+)_', msg.get('Subject'))
 if match:
 keyword = 'build'
 package = match.group(1)
-- 
2.14.1