Edgewall Software

Changeset 1212 for trunk/genshi/input.py


Ignore:
Timestamp:
Jan 26, 2013, 12:38:35 PM (11 years ago)
Author:
hodgestar
Message:

Remove unused isinstance checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/input.py

    r1189 r1212  
    367367        for name, value in attrib: # Fixup minimized attributes
    368368            if value is None:
    369                 value = unicode(name)
    370             elif not isinstance(value, unicode):
    371                 value = value.decode(self.encoding, 'replace')
     369                value = name
    372370            fixed_attrib.append((QName(name), stripentities(value)))
    373371
     
    387385
    388386    def handle_data(self, text):
    389         if not isinstance(text, unicode):
    390             text = text.decode(self.encoding, 'replace')
    391387        self._enqueue(TEXT, text)
    392388
Note: See TracChangeset for help on using the changeset viewer.