8000 Move __future__ imports earlier to avoid 'from __future__ imports mus… · matplotlib/matplotlib@2962c8d · GitHub
[go: up one dir, main page]

Skip to content

Commit 2962c8d

Browse files
author
Neil
committed
Move __future__ imports earlier to avoid 'from __future__ imports must occur at the beginning of the file' SyntaxErrors
1 parent cd34b7b commit 2962c8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/_mathtext_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
"""
22
font data tables for truetype and afm computer modern fonts
33
"""
4-
54
# this dict maps symbol names to fontnames, glyphindex. To get the
65
# glyph index from the character code, you have to use get_charmap
6+
from __future__ import print_function
7+
78
"""
89
from matplotlib.ft2font import FT2Font
910
font = FT2Font('/usr/local/share/matplotlib/cmr10.ttf')
@@ -13,7 +14,6 @@
1314
for charcode, glyphind in items:
1415
print charcode, glyphind
1516
"""
16-
from __future__ import print_function
1717

1818
latex_to_bakoma = {
1919
r'\oint' : ('cmex10', 45),

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
platforms, so if a font is installed, it is much more likely to be
2020
found.
2121
"""
22+
from __future__ import print_function
2223

2324
"""
2425
KNOWN ISSUES
@@ -42,7 +43,6 @@
4243
see license/LICENSE_TTFQUERY.
4344
"""
4445

45-
from __future__ import print_function
4646
import os, sys, glob, subprocess, warnings
4747
try:
4848
set

0 commit comments

Comments
 (0)
0