Skip to content

Commit 7eb77e8

Browse files
committed
Fix _XStrLenField calls
1 parent 5cd2901 commit 7eb77e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scapy/fields.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,20 +1230,20 @@ def i2repr(self, pkt, x):
12301230
return bytes_hex(x).decode()
12311231

12321232

1233-
class _XStrField:
1233+
class _XStrLenField:
12341234
def i2repr(self, pkt, x):
12351235
if not x:
12361236
return repr(x)
12371237
return bytes_hex(x[:self.length_from(pkt)]).decode()
12381238

12391239

1240-
class XStrLenField(StrLenField, XStrField):
1240+
class XStrLenField(_XStrLenField, StrLenField):
12411241
"""
12421242
StrLenField which value is printed as hexadecimal.
12431243
"""
12441244

12451245

1246-
class XStrFixedLenField(StrFixedLenField, XStrField):
1246+
class XStrFixedLenField(_XStrLenField, StrFixedLenField):
12471247
"""
12481248
StrFixedLenField which value is printed as hexadecimal.
12491249
"""

0 commit comments

Comments
 (0)