From: Douglas Bagnall Date: Sat, 27 Oct 2018 22:11:41 +0000 (+1300) Subject: s4/script/depfilter.py: use py3 compatible regex import X-Git-Tag: tdb-1.3.17~1044 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=853230888324f17513ebe7d9001a87e690e63042;p=thirdparty%2Fsamba.git s4/script/depfilter.py: use py3 compatible regex import Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- 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] = []