Skip to content

Commit 97d7daf

Browse files
committed
Update to use print_function in all library Python files -- whether they actually use the print function or not.
1 parent 2bc5b5e commit 97d7daf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+146
-65
lines changed

lib/matplotlib/_cm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
"""
66

7+
from __future__ import print_function
78
import numpy as np
89

910
_binary_data = {

lib/matplotlib/_mathtext_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
for charcode, glyphind in items:
1414
print charcode, glyphind
1515
"""
16+
from __future__ import print_function
1617

1718
latex_to_bakoma = {
1819
r'\oint' : ('cmex10', 45),

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import division, generators
1+
from __future__ import division, print_function
22
import math, sys, warnings, datetime
33
from operator import itemgetter
44
import itertools

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
"""
32
Abstract base classes define the primitives that renderers and
43
graphics contexts must implement to serve as a matplotlib backend

lib/matplotlib/backends/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
from __future__ import print_function
22
import matplotlib
33
import inspect
44
import warnings

lib/matplotlib/backends/backend_fltkagg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
"""
1010

11-
from __future__ import division
11+
from __future__ import division, print_function
1212

1313
import os, sys, math
1414

lib/matplotlib/backends/backend_gdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import division
1+
from __future__ import division, print_function
22

33
import math
44
import os

lib/matplotlib/backends/backend_macosx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import division
1+
from __future__ import division, print_function
22

33
import os
44
import numpy

lib/matplotlib/backends/backend_mixed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
from matplotlib._image import frombuffer
23
from matplotlib.backends.backend_agg import RendererAgg
34
from matplotlib.tight_bbox import process_figure_for_rasterizing

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: iso-8859-1 -*-
2+
23
"""
34
A PDF matplotlib backend (not yet complete)
45
Author: Jouni K Seppänen <jks@iki.fi>

0 commit comments

Comments
 (0)