From 33ba4a3e228f1234771712c9b2a63fd257cf0910 Mon Sep 17 00:00:00 2001 From: Qua-non Date: Sat, 21 Jul 2012 16:00:15 +0530 Subject: [PATCH] UIX:Widget clean WidgetException remove ''.join --- kivy/uix/widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivy/uix/widget.py b/kivy/uix/widget.py index a3c122ea0..151d201ae 100644 --- a/kivy/uix/widget.py +++ b/kivy/uix/widget.py @@ -230,8 +230,8 @@ class Widget(EventDispatcher): parent = widget.parent # check if widget is already a child of another widget if parent: - raise WidgetException(''.join(('Cannot add ', str(widget),\ - ' It already has a parent: ', str(parent)))) + raise WidgetException('Cannot add %r, it already has a parent %r' + % (widget, parent)) widget.parent = self if index == 0 or len(self.children) == 0: self.children.insert(0, widget)