aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-01-26 16:06:24 +0100
committerMichał Górny <mgorny@gentoo.org>2020-01-26 16:09:41 +0100
commite7b20e89546857635e28cc05cc7cb4ab8cbd6ee7 (patch)
tree5066d8f09913f766b8f8195f3e2c2a01fcbee767 /pym/gentoolkit/revdep_rebuild/settings.py
parenteshowkw: Add alpha to ~arch-only (diff)
downloadgentoolkit-e7b20e89546857635e28cc05cc7cb4ab8cbd6ee7.tar.gz
gentoolkit-e7b20e89546857635e28cc05cc7cb4ab8cbd6ee7.tar.bz2
gentoolkit-e7b20e89546857635e28cc05cc7cb4ab8cbd6ee7.zip
Pass raw strings for regexp to fix DeprecationWarnings
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'pym/gentoolkit/revdep_rebuild/settings.py')
-rw-r--r--pym/gentoolkit/revdep_rebuild/settings.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/gentoolkit/revdep_rebuild/settings.py b/pym/gentoolkit/revdep_rebuild/settings.py
index 7438594..ca8d5fa 100644
--- a/pym/gentoolkit/revdep_rebuild/settings.py
+++ b/pym/gentoolkit/revdep_rebuild/settings.py
@@ -151,15 +151,15 @@ def parse_revdep_config(revdep_confdir):
line = line.strip()
#first check for comment, we do not want to regex all lines
if not line.startswith('#'):
- match = re.match('LD_LIBRARY_MASK=\\"([^"]+)\\"', line)
+ match = re.match(r'LD_LIBRARY_MASK=\\"([^"]+)\\"', line)
if match is not None:
masked_files += ' ' + match.group(1)
continue
- match = re.match('SEARCH_DIRS_MASK=\\"([^"]+)\\"', line)
+ match = re.match(r'SEARCH_DIRS_MASK=\\"([^"]+)\\"', line)
if match is not None:
masked_dirs += ' ' + match.group(1)
continue
- match = re.match('SEARCH_DIRS=\\"([^"]+)\\"', line)
+ match = re.match(r'SEARCH_DIRS=\\"([^"]+)\\"', line)
if match is not None:
search_dirs += ' ' + match.group(1)
continue