8000 SC 15/02/2005 · matplotlib/matplotlib@1734236 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1734236

Browse files
author
Steve Chaplin
committed
SC 15/02/2005
svn path=/trunk/matplotlib/; revision=965
1 parent 3e315fb commit 1734236

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
New entries should be added at the top
22

33

4+
2005-02-14 fix bug in cbook alltrue() and onetrue() - SC
5+
46
2005-02-11 updated qtagg backend from Ted - JDH
57

68
2005-02-11 matshow fixes for figure numbering, return value and docs - FP

lib/matplotlib/cbook.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,14 +399,14 @@ def alltrue(seq):
399399
#return true if all elements of seq are true. If seq is empty return false
400400
if not len(seq): return False
401401
for val in seq:
402-
if not seq: return False
402+
if not val: return False
403403
return True
404404

405405
def onetrue(seq):
406-
#return true if one elements of seq are true. If seq is empty return false
406+
#return true if one element of seq is true. If seq is empty return false
407407
if not len(seq): return False
408408
for val in seq:
409-
if seq: return True
409+
if val: return True
410410
return False
411411

412412
def allpairs(x):

0 commit comments

Comments
 (0)
0