8000 No need to use xrange for a short loop · matplotlib/matplotlib@f11eaae · GitHub
[go: up one dir, main page]

Skip to content

Commit f11eaae

Browse files
committed
No need to use xrange for a short loop
fixes python3
1 parent 835303e commit f11eaae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/animation_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
y = np.arange(5)
1414
z = x * y[:, np.newaxis]
1515

16-
for i in xrange(5):
16+
for i in range(5):
1717
if i == 0:
1818
p = plt.imshow(z)
1919
fig = plt.gcf()

0 commit comments

Comments
 (0)
0