Skip to content

Commit 7d79a3b

Browse files
committed
make stix_fonts_demo.py to work with system of sys.maxunicode <= 0xffff
1 parent 1d8b6fb commit 7d79a3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/pylab_examples/stix_fonts_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
r'$\mathscr{Script}$']
1717

1818
if sys.maxunicode > 0xffff:
19+
s = r'Direct Unicode: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
1920
stests.append(
20-
ur'Direct Unicode: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
21+
unicode(s, encoding="unicode_escape")
2122
)
2223

2324
from pylab import *

0 commit comments

Comments
 (0)