diff options
Diffstat (limited to 'pym/gentoolkit/revdep_rebuild')
-rw-r--r-- | pym/gentoolkit/revdep_rebuild/analyse.py | 4 | ||||
-rw-r--r-- | pym/gentoolkit/revdep_rebuild/assign.py | 2 | ||||
-rw-r--r-- | pym/gentoolkit/revdep_rebuild/collect.py | 2 | ||||
-rw-r--r-- | pym/gentoolkit/revdep_rebuild/settings.py | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/pym/gentoolkit/revdep_rebuild/analyse.py b/pym/gentoolkit/revdep_rebuild/analyse.py index 7ddd5e9..6ca3f10 100644 --- a/pym/gentoolkit/revdep_rebuild/analyse.py +++ b/pym/gentoolkit/revdep_rebuild/analyse.py @@ -76,7 +76,7 @@ def extract_dependencies_from_la(la, libraries, to_check, logger): libnames = [] for lib in libraries: - match = re.match('.+\/(.+)\.(so|la|a)(\..+)?', lib) + match = re.match(r'.+\/(.+)\.(so|la|a)(\..+)?', lib) if match is not None: libname = match.group(1) if libname not in libnames: @@ -90,7 +90,7 @@ def extract_dependencies_from_la(la, libraries, to_check, logger): encoding=_encodings['content']).readlines(): line = line.strip() if line.startswith('dependency_libs='): - match = re.match("dependency_libs='([^']+)'", line) + match = re.match(r"dependency_libs='([^']+)'", line) if match is not None: for el in match.group(1).split(' '): el = el.strip() diff --git a/pym/gentoolkit/revdep_rebuild/assign.py b/pym/gentoolkit/revdep_rebuild/assign.py index 84bd59f..48c8c93 100644 --- a/pym/gentoolkit/revdep_rebuild/assign.py +++ b/pym/gentoolkit/revdep_rebuild/assign.py @@ -94,7 +94,7 @@ def assign_packages(broken, logger, settings): try: with io.open(f, 'r', encoding='utf_8') as cnt: for line in cnt.readlines(): - m = re.match('^obj (/[^ ]+)', line) + m = re.match(r'^obj (/[^ ]+)', line) if m is not None: contents_matcher.add(m.group(1)) except Exception as e: diff --git a/pym/gentoolkit/revdep_rebuild/collect.py b/pym/gentoolkit/revdep_rebuild/collect.py index 9b81183..cbac878 100644 --- a/pym/gentoolkit/revdep_rebuild/collect.py +++ b/pym/gentoolkit/revdep_rebuild/collect.py @@ -84,7 +84,7 @@ def prepare_search_dirs(logger, settings): encoding=_encodings['content']) as _file: for line in _file.readlines(): line = line.strip() - match = re.match("^export (ROOT)?PATH='([^']+)'", line) + match = re.match(r"^export (ROOT)?PATH='([^']+)'", line) if match is not None: bin_dirs.update(set(match.group(2).split(':'))) #except EnvironmentError: 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 |