8000 Python3 pep8 fixes · matplotlib/matplotlib@405d6c6 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 405d6c6

Browse files
committed
Python3 pep8 fixes
I am seeing these pep8 failures in the test suite only with python3. Because print isn't a function in python2? Travis does not run pep8 on python3 so I only see this fail locally
1 parent c6f24d3 commit 405d6c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/api/date_index_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import matplotlib.ticker as ticker
1212

1313
datafile = cbook.get_sample_data('aapl.csv', asfileobj=False)
14-
print ('loading %s' % datafile)
14+
print('loading %s' % datafile)
1515
r = mlab.csv2rec(datafile)
1616

1717
r.sort()

examples/api/watermark_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import matplotlib.pyplot as plt
99

1010
datafile = cbook.get_sample_data('logo2.png', asfileobj=False)
11-
print ('loading %s' % datafile)
11+
print('loading %s' % datafile)
1212
im = image.imread(datafile)
1313
im[:, :, -1] = 0.5 # set the alpha channel
1414

0 commit comments

Comments
 (0)
0