matplotlib/matplotlib — pull request #651 by efiring (2012-01-01 09:24:50+00:00)
Title: transforms: bugfix: examples/api/custom_projection_example.py was failing

An anchor u'C' was being passed in and was failing the test of
being a string. The proposed solution is to use try/except to
see if the value passed in is a dictionary key. This seems to
work regardless of whether the value is a string or unicode.