Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c35ee74

Browse files
tacaswelltobias47n9e
authored andcommitted
MNT : six-ified BytesIO import in pdf backend
1 parent 2d2981b commit c35ee74

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@
2020

2121
import numpy as np
2222
from six import unichr
23+
from six import BytesIO
2324

24-
if six.PY3:
25-
from io import BytesIO
26-
else:
27-
from cStringIO import StringIO as BytesIO
2825
from datetime import datetime
2926
from math import ceil, cos, floor, pi, sin
3027
try:

0 commit comments

Comments
 (0)