8000 Use open rather than file · matplotlib/matplotlib@52be825 · GitHub
[go: up one dir, main page]

Skip to content

Commit 52be825

Browse files
committed
Use open rather than file
1 parent 5ce4d25 commit 52be825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
datafile = cbook.get_sample_data('membrane.dat', asfileobj=False)
1010
print('loading', datafile)
1111

12-
x = 1000*0.1*fromstring(file(datafile, 'rb').read(), float32)
12+
x = 1000*0.1*fromstring(open(datafile, 'rb').read(), float32)
1313
# 0.0005 is the sample interval
1414
t = 0.0005*arange(len(x))
1515
figure(1, figsize=(7, 1), dpi=100)

0 commit comments

Comments
 (0)
0