Python UnicodeWarning:Unicode相等比较无法将两个参数转换为Unicode MacOSX

Python UnicodeWarning:Unicode相等比较无法将两个参数转换为Unicode MacOSX,python,unicode,matplotlib,osx-lion,Python,Unicode,Matplotlib,Osx Lion,我在MacOSLion,Python2.7上遇到了这个错误 ============================================= > /usr/local/lib/python2.7/site-packages/matplotlib/text.py:52: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as

我在MacOSLion,Python2.7上遇到了这个错误

=============================================

> /usr/local/lib/python2.7/site-packages/matplotlib/text.py:52: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if rotation in ('horizontal', None):

 /usr/local/lib/python2.7/site-packages/matplotlib/text.py:54: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal elif rotation == 'vertical':
==============================================

> /usr/local/lib/python2.7/site-packages/matplotlib/text.py:52: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if rotation in ('horizontal', None):

 /usr/local/lib/python2.7/site-packages/matplotlib/text.py:54: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal elif rotation == 'vertical':
我的代码
这些只是警告,代码仍然应该产生正确的结果。这已在master Hi@tcaswell上修复,我如何将这些更改应用于我的文件,我是否应该进行提交??或者我应该将这些行复制到我的文件中??我通过自制安装了python。谢谢