Revision: 6756
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6756&view=rev
Author:   jrevans
Date:     2009-01-06 23:38:46 +0000 (Tue, 06 Jan 2009)

Log Message:
-----------
Fixed a typo, an elif was placed after the else part of an 'if' statement.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/contour.py

Modified: trunk/matplotlib/lib/matplotlib/contour.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/contour.py  2009-01-06 20:57:28 UTC (rev 
6755)
+++ trunk/matplotlib/lib/matplotlib/contour.py  2009-01-06 23:38:46 UTC (rev 
6756)
@@ -873,10 +873,10 @@
                     tlinestyles = tlinestyles * nreps
                 if len(tlinestyles) > Nlev:
                     tlinestyles = tlinestyles[:Nlev]
+            elif cbook.iterable(linestyles): # len(linestyles) >= Nlev
+                tlinestyles = list(linestyles)[:Nlev]
             else:
                 raise ValueError("Unrecognized type for linestyles kwarg")
-            elif cbook.iterable(linestyles): # len(linestyles) >= Nlev
-                tlinestyles = list(linestyles)[:Nlev]
         return tlinestyles
 
     def get_alpha(self):


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to