Commit 43a939be authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[plotters] replace cStringIO.StringIO with io.BytesIO to be python2 and python3 compatible

parent 59bf17e4
Pipeline #20104 passed with stages
in 73 minutes and 25 seconds
......@@ -64,7 +64,7 @@ from .dataformats import pull as dataformats_pull
from .plotterparameters import pull as plotterparameters_pull
from .libraries import pull as libraries_pull
from PIL import Image
import cStringIO
import io
import logging
logger = logging.getLogger(__name__)
......@@ -257,7 +257,7 @@ def plot(webapi, prefix, names, show, force, need_data_sample, inputdata, output
data_to_plot = [('sample_plot', sample_data)]
fig = runnable.process(data_to_plot)
if show:
im =
im =
output_name = os.path.join(prefix, outputimage_name)
with open(output_name, "wb") as fh:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment