kivy/kivy — pull request #1998 by joranbeasley (2014-03-21 22:38:35+00:00)
Title: use a more natural method to check if self._text is unicode.

uses isinstance instead of type which is encouraged typically in pep8
also ensures improved compatibility

(we were basically getting hit with this bug and it was an easy fix so I figured I would push it over to you guys)

this is to handle the following case
```
class LabelText(unicode):
def do_something():
return repr(self)

Label(text=LabelText("some Message!"))
```
which would cause kivy to crash prior to this fix