8000 Fix render_pdf check_simple_chunks test to work with py3k · matplotlib/matplotlib@5fcec51 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5fcec51

Browse files
Neilstefanv
authored andcommitted
Fix render_pdf check_simple_chunks test to work with py3k
1 parent b144485 commit 5fcec51
Copy full SHA for 5fcec51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ def check_simple_method(s):
16881688
chunks = []
16891689

16901690
if not rcParams['pdf.use14corefonts']:
1691-
if fonttype == 3 and not isinstance(s, str) and len(s) != 0:
1691+
if fonttype == 3 and not isinstance(s, bytes) and len(s) != 0:
16921692
# Break the string into chunks where each chunk is either
16931693
# a string of chars <= 255, or a single character > 255.
16941694
s = unicode(s)

0 commit comments

Comments
 (0)
0