From 910c86036fb29b8e05f57ffc0cdc5e426c231ca9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 3 Jun 2015 21:29:38 +0000 Subject: -improve Python3 compatibility --- contrib/gnunet_pyexpect.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gnunet_pyexpect.py.in b/contrib/gnunet_pyexpect.py.in index 9e5c83fa3..f8b7cc88f 100644 --- a/contrib/gnunet_pyexpect.py.in +++ b/contrib/gnunet_pyexpect.py.in @@ -56,7 +56,7 @@ class pexpect (object): print ("Failed to find `{1}' in {0}, which is `{2}' ({3})".format (s, r, stream, len (stream))) sys.exit (2) raise ValueError ("Argument `r' should be an instance of re.RegexObject or a special string, but is `{0}'".format (r)) - m = r.search (stream, flags) + m = r.search (stream.decode(), flags) if not m: print ("Failed to find `{1}' in {0}, which is is `{2}'".format (s, r.pattern, stream)) sys.exit (2) -- cgit v1.2.3