def _writeCodes(self, codes, writer):
    isUnicode = self.isUnicode()
    for (code, name) in codes:
        writer.simpletag('map', code=hex(code), name=name)
        if isUnicode:
            writer.comment(Unicode[code])
        writer.newline()
def _writeCodes(self, codes, writer):
    isUnicode = self.isUnicode()
    for (code, name) in codes:
        writer.simpletag('map', code=hex(code), name=name)
        if isUnicode:
            writer.comment(Unicode[code])
        writer.newline()