From: <fer...@us...> - 2010-08-25 22:14:02
|
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. |