Skip to content

Commit 53d33b0

Browse files
Replaced cStringIO with BytesIO, fixing Python 3 incompatiblity.
1 parent 3e969e5 commit 53d33b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codespeed/images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import cStringIO
1+
from io import BytesIO
22
from matplotlib.figure import Figure
33
from matplotlib.ticker import FormatStrFormatter
44
from matplotlib.backends.backend_agg import FigureCanvasAgg
@@ -63,7 +63,7 @@ def gen_image_from_results(result_data, width, height):
6363
ax.plot(xax, yax)
6464

6565
canvas = FigureCanvasAgg(fig)
66-
buf = cStringIO.StringIO()
66+
buf = BytesIO()
6767
canvas.print_png(buf)
6868
buf_data = buf.getvalue()
6969

0 commit comments

Comments
 (0)