From d54d3cf5ee76ecad32d84975bd22cc2cb7a8ce7e Mon Sep 17 00:00:00 2001
From: Enric Tejedor Saavedra <enric.tejedor.saavedra@cern.ch>
Date: Tue, 13 Dec 2016 15:39:06 +0100
Subject: [PATCH] Adapt to Python3: encode to utf-8 before calling C++

---
 bindings/pyroot/JupyROOT/handlers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bindings/pyroot/JupyROOT/handlers.py b/bindings/pyroot/JupyROOT/handlers.py
index ad780e3dc76..557739b3e4a 100644
--- a/bindings/pyroot/JupyROOT/handlers.py
+++ b/bindings/pyroot/JupyROOT/handlers.py
@@ -118,7 +118,7 @@ class JupyROOTDeclarer(Runner):
     ''' Asynchrously execute declarations
     >>> import ROOT
     >>> d = JupyROOTDeclarer()
-    >>> d.Run("int f(){return 3;}")
+    >>> d.Run("int f(){return 3;}".encode("utf-8"))
     1
     >>> ROOT.f()
     3
@@ -130,7 +130,7 @@ class JupyROOTExecutor(Runner):
     r''' Asynchrously execute process lines
     >>> import ROOT
     >>> d = JupyROOTExecutor()
-    >>> d.Run('cout << "Here am I" << endl;')
+    >>> d.Run('cout << "Here am I" << endl;'.encode("utf-8"))
     1
     '''
     def __init__(self):
-- 
GitLab