diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-26 17:23:14 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-26 17:23:14 (GMT) |
commit | db02d6b54c0d7bd6beee0d8f91378432440aefa4 (patch) | |
tree | 9f6712f75fb6ceeac3742187758f6dfba6ea17da /sugar | |
parent | 5b1db87cec9b159ffad84a465b871b27b75fad82 (diff) |
Correct latest commit.
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/graphics/icon.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sugar/graphics/icon.py b/sugar/graphics/icon.py index f4b466c..7912208 100644 --- a/sugar/graphics/icon.py +++ b/sugar/graphics/icon.py @@ -415,13 +415,13 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem): self.props.fill_color = value.get_fill_color() self.props.stroke_color = value.get_stroke_color() elif pspec.name == 'fill-color': - if not isinstance(value, str): - raise TypeError('fill-color must be a string') + if not isinstance(value, basestring): + raise TypeError('fill-color must be a string, not %r' % type(value)) self._buffer.fill_color = value self.emit_paint_needed(0, 0, -1, -1) elif pspec.name == 'stroke-color': - if not isinstance(value, str): - raise TypeError('stroke-color must be a string') + if not isinstance(value, basestring): + raise TypeError('stroke-color must be a string, not %r' % type(value)) self._buffer.stroke_color = value self.emit_paint_needed(0, 0, -1, -1) elif pspec.name == 'size': |