Skip to content

Commit 03435f4

Browse files
committed
MNT : six-ified BytesIO import in pdf backend
1 parent 788f130 commit 03435f4

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)