From: <jd...@us...> - 2008-07-23 13:16:30
|
Revision: 5822 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5822&view=rev Author: jdh2358 Date: 2008-07-23 13:16:28 +0000 (Wed, 23 Jul 2008) Log Message: ----------- fixed is_scalar -- good catch david Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/cbook.py Modified: trunk/matplotlib/lib/matplotlib/cbook.py =================================================================== --- trunk/matplotlib/lib/matplotlib/cbook.py 2008-07-23 12:34:26 UTC (rev 5821) +++ trunk/matplotlib/lib/matplotlib/cbook.py 2008-07-23 13:16:28 UTC (rev 5822) @@ -287,7 +287,7 @@ def is_scalar(obj): 'return true if *obj* is not string like and is not iterable' - return is_string_like(obj) or not iterable(obj) + return not is_string_like(obj) or not iterable(obj) def is_numlike(obj): 'return true if *obj* looks like a number' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |