Пример #1
0
    def parse(self, data):
        super(Wheel, self).parse(data)

        fp = six.StringIO(distribution.must_decode(data))
        msg = distribution.parse(fp)
        self.description = msg.get_payload()
Пример #2
0
    def parse(self, data):
        super(Wheel, self).parse(data)

        fp = StringIO(distribution.must_decode(data))
        msg = distribution.parse(fp)
        self.description = msg.get_payload()
Пример #3
0
    def parse(self, data: bytes) -> None:
        super().parse(data)

        fp = io.StringIO(distribution.must_decode(data))
        msg = distribution.parse(fp)
        self.description = msg.get_payload()