예제 #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))