summaryrefslogtreecommitdiff
path: root/contrib/gnunet_pyexpect.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gnunet_pyexpect.py.in')
-rw-r--r--contrib/gnunet_pyexpect.py.in2
1 files changed, 1 insertions, 1 deletions
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)