mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 22:06:10 +02:00
python3: Remove harmful AsciiStringType.{encode, decode}
Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
01a3cde6ac
commit
39697ad1e7
@ -85,14 +85,14 @@ class NXFlowSpecFieldType(TypeDescr):
|
||||
if not isinstance(v, tuple):
|
||||
return v
|
||||
field, ofs = v
|
||||
return [AsciiStringType.encode(field), ofs]
|
||||
return [field, ofs]
|
||||
|
||||
@staticmethod
|
||||
def decode(v):
|
||||
if not isinstance(v, list):
|
||||
return v
|
||||
field, ofs = v
|
||||
return (AsciiStringType.decode(field), ofs)
|
||||
return (field, ofs)
|
||||
|
||||
|
||||
_types = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user