Пример #1
0
    def _pack_name(self):

        tagname = codes.tags[self.tagname]

        if self.subtags :
            tagname = tagname * 2 + 1
        else:
            tagname = tagname * 2

        # FIXME : should we alwasy send utf-8-lized number, instead?
        return pack_uint16(tagname)
Пример #2
0
    def _pack_name(self):

        tagname = codes.tags[self.tagname]

        if self.subtags:
            tagname = tagname * 2 + 1
        else:
            tagname = tagname * 2

        # FIXME : should we alwasy send utf-8-lized number, instead?
        return pack_uint16(tagname)
Пример #3
0
 def _pack_tagcount(self):
     return pack_uint16( len(self.subtags) )
Пример #4
0
 def _pack_tagcount(self):
     return pack_uint16(len(self.subtags))