Skip to content

Commit 280001a

Browse files
committed
Use open rather than file
1 parent d0bb8c1 commit 280001a

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)