From 853230888324f17513ebe7d9001a87e690e63042 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sun, 28 Oct 2018 11:11:41 +1300 Subject: [PATCH] s4/script/depfilter.py: use py3 compatible regex import Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- source4/script/depfilter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/script/depfilter.py b/source4/script/depfilter.py index ffe628ef94c..f2152538fb3 100755 --- a/source4/script/depfilter.py +++ b/source4/script/depfilter.py @@ -8,7 +8,7 @@ from __future__ import print_function import sys -import sre +import re if len(sys.argv) != 2: print('Usage: depfilter.py NODE') @@ -23,7 +23,7 @@ lines = sys.stdin.readlines() graph = {} for arc in lines[1:-1]: - match = sre.search('"(.*)" -> "(.*)"', arc) + match = re.search('"(.*)" -> "(.*)"', arc) n1, n2 = match.group(1), match.group(2) if n1 not in graph: graph[n1] = [] -- 2.47.2