Show More
@@ -340,7 +340,7 b' class TextDisplayObject(DisplayObject):' | |||||
340 | """Validate that display data is text""" |
|
340 | """Validate that display data is text""" | |
341 | def _check_data(self): |
|
341 | def _check_data(self): | |
342 | if self.data is not None and not isinstance(self.data, string_types): |
|
342 | if self.data is not None and not isinstance(self.data, string_types): | |
343 | raise TypeError("%s xpects text, not %r" % (self.__class__.__name__, self.data)) |
|
343 | raise TypeError("%s expects text, not %r" % (self.__class__.__name__, self.data)) | |
344 |
|
344 | |||
345 | class Pretty(TextDisplayObject): |
|
345 | class Pretty(TextDisplayObject): | |
346 |
|
346 |
General Comments 0
You need to be logged in to leave comments.
Login now