mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-03 12:23:46 +00:00
Py3: Store base.Integer value as bytes
This commit is contained in:
parent
40056e1cd7
commit
daba944151
@ -391,7 +391,7 @@ class Integer(_Component):
|
|||||||
"Integer value must be between %s and %s." % self.bounds,
|
"Integer value must be between %s and %s." % self.bounds,
|
||||||
0, 0
|
0, 0
|
||||||
)
|
)
|
||||||
self.value = str(value)
|
self.value = str(value).encode()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def expr(cls):
|
def expr(cls):
|
||||||
@ -404,7 +404,7 @@ class Integer(_Component):
|
|||||||
return self.value
|
return self.value
|
||||||
|
|
||||||
def spec(self):
|
def spec(self):
|
||||||
return "%s%s" % (self.preamble, self.value)
|
return "%s%s" % (self.preamble, self.value.decode())
|
||||||
|
|
||||||
def freeze(self, settings_):
|
def freeze(self, settings_):
|
||||||
return self
|
return self
|
||||||
|
Loading…
Reference in New Issue
Block a user