コード例 #1
0
ファイル: tag.py プロジェクト: adaptee/pyec
    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
ファイル: tag.py プロジェクト: burlizzi/missing
    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
ファイル: tag.py プロジェクト: adaptee/pyec
 def _pack_tagcount(self):
     return pack_uint16( len(self.subtags) )
コード例 #4
0
ファイル: tag.py プロジェクト: burlizzi/missing
 def _pack_tagcount(self):
     return pack_uint16(len(self.subtags))