summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-03 21:29:38 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-03 21:29:38 +0000
commit910c86036fb29b8e05f57ffc0cdc5e426c231ca9 (patch)
tree4cacc6e47fc5ef7b94e329a7192a38b5f7fa7c32 /contrib
parentae6b210d4e467c7ece9df7659a87bd4688ff5ab2 (diff)
-improve Python3 compatibility
Diffstat (limited to 'contrib')
-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)