Revision: 8657
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8657&view=rev
Author:   fer_perez
Date:     2010-08-25 22:13:56 +0000 (Wed, 25 Aug 2010)

Log Message:
-----------
Fix small bug where module names were being incorrectly lowercased in
backend specifications.

Thanks to Evan Patterson and Brian Granger for spotting the problem
and fix.

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

Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py 2010-08-25 07:15:15 UTC (rev 
8656)
+++ trunk/matplotlib/lib/matplotlib/__init__.py 2010-08-25 22:13:56 UTC (rev 
8657)
@@ -880,10 +880,11 @@
     if 'matplotlib.backends' in sys.modules:
         if warn: warnings.warn(_use_error_msg)
         return
-    arg = arg.lower()
     if arg.startswith('module://'):
         name = arg
     else:
+        # Lowercase only non-module backend names (modules are case-sensitive)
+        arg = arg.lower()
         be_parts = arg.split('.')
         name = validate_backend(be_parts[0])
         if len(be_parts) > 1:


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

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to