Changeset 1777 for pykota/trunk/bin

Show
Ignore:
Timestamp:
10/05/04 11:59:20 (20 years ago)
Author:
jalet
Message:

Restore compatibility with Python 2.1

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/dumpykota

    r1771 r1777  
    2424# 
    2525# $Log$ 
     26# Revision 1.8  2004/10/05 09:59:19  jalet 
     27# Restore compatibility with Python 2.1 
     28# 
    2629# Revision 1.7  2004/10/04 21:25:29  jalet 
    2730# dumpykota can now output datas in the XML format 
     
    218221            for i in range(len(entry)) : 
    219222                value = entry[i] 
    220                 strvalue = str(value).decode(self.getCharset()).encode("UTF-8") 
     223                strvalue = unicode(str(value), self.getCharset()).encode("UTF-8") 
    221224                x.attribute(strvalue, type=type(value).__name__, name=headers[i]) 
    222225            x._pop()