Skip to content

Commit e714c77

Browse files
tacaswelltonysyu
authored andcommitted
added python3 emulation code + six + fixed up print calls
1 parent d372a35 commit e714c77

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/matplotlib/style/core.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
from __future__ import (absolute_import, division, print_function,
2+
unicode_literals)
3+
4+
import six
5+
from six.moves import reduce, xrange, zip
6+
17
"""
28
Core functions and attributes for the matplotlib style library:
39
@@ -54,8 +60,8 @@ def use(name):
5460
else:
5561
try:
5662
rc = rc_params_from_file(style, use_default_template=False)
57-
print rc
58-
print type(rc)
63+
print(rc)
64+
print(type(rc))
5965
mpl.rcParams.update(rc)
6066
except:
6167
msg = ("'%s' not found in the style library and input is "

0 commit comments

Comments
 (0)