[jToolkit-cvs] jToolkit/widgets widgets.py,1.7,1.8
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-09 13:43:29
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3369 Modified Files: widgets.py Log Message: changed unicode format string (gave errors with encoded strings) Index: widgets.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/widgets.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** widgets.py 9 Feb 2004 13:30:48 -0000 1.7 --- widgets.py 9 Feb 2004 13:40:13 -0000 1.8 *************** *** 42,46 **** if type(attribs) == str: attribs = attribs.decode('iso8859') if type(contents) == str: contents = contents.decode('iso8859') ! return u"<%s %s>%s</%s>\r" % (tagname, attribs, contents, tagname) def getcontents(self): --- 42,46 ---- if type(attribs) == str: attribs = attribs.decode('iso8859') if type(contents) == str: contents = contents.decode('iso8859') ! return "<%s %s>%s</%s>\r" % (tagname, attribs, contents, tagname) def getcontents(self): |