Revision: 4402
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4402&view=rev
Author:   mdboom
Date:     2007-11-21 07:24:22 -0800 (Wed, 21 Nov 2007)

Log Message:
-----------
Fix to work on Python 2.3

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

Modified: trunk/matplotlib/lib/matplotlib/pyparsing.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/pyparsing.py        2007-11-21 13:49:03 UTC 
(rev 4401)
+++ trunk/matplotlib/lib/matplotlib/pyparsing.py        2007-11-21 15:24:22 UTC 
(rev 4402)
@@ -2846,7 +2846,11 @@
         warnings.warn("Invalid argument to oneOf, expected string or list",
                 SyntaxWarning, stacklevel=2)
 
-    symbols.sort(reverse=True)
+    try:
+        symbols.sort(reverse=True)
+    except TypeError:
+        symbols.sort()
+        symbols.reverse()
     i = 0
     while i < len(symbols)-1:
         cur = symbols[i]


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to