Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/
Date: Mon, 27 May 2019 17:52:36
Message-Id: 1558979525.2bc49521708ec4cd6941bc725f7b4ab490ff77a9.zmedico@gentoo
1 commit: 2bc49521708ec4cd6941bc725f7b4ab490ff77a9
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 27 17:51:38 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon May 27 17:52:05 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=2bc49521
7
8 get_filesystem_mirrors: fix DeprecationWarning: invalid escape sequence \
9
10 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
11
12 mirrorselect/configs.py | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/mirrorselect/configs.py b/mirrorselect/configs.py
16 index 8c4b4df..df718f6 100644
17 --- a/mirrorselect/configs.py
18 +++ b/mirrorselect/configs.py
19 @@ -172,7 +172,7 @@ def get_filesystem_mirrors(output, config_path, sync=False):
20
21 """ Search for 'var' in make.conf and extract value """
22 lex = shlex.shlex(f, posix=True)
23 - lex.wordchars = string.digits+letters+"~!@#$%*_\:;?,./-+{}"
24 + lex.wordchars = string.digits + letters + r"~!@#$%*_\:;?,./-+{}"
25 lex.quotes = "\"'"
26 p = re.compile('rsync://|http://|ftp://', re.IGNORECASE)
27 while 1: