Enlightenment CVS committal Author : ulisses Project : e17 Module : proto/python-efl
Dir : e17/proto/python-efl/python-edje/edje Modified Files: edje.c_edje_object.pxi Log Message: Testing for basestring instance to support all string types. =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-edje/edje/edje.c_edje_object.pxi,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- edje.c_edje_object.pxi 8 Oct 2007 15:15:58 -0000 1.22 +++ edje.c_edje_object.pxi 20 Oct 2007 22:19:34 -0000 1.23 @@ -653,10 +653,9 @@ self.message_send(id, data[0]) return - item_type = type(data[0]) - if item_type not in (long, int, float, str): # FIXME: add unicode + if not isinstance(data[0], (long, int, float, basestring)): raise TypeError("invalid message list type '%s'" % - item_type.__name__) + type(data[0]).__name__) self.message_send_set(id, data) else: ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs