Skip to content

Commit

Permalink
vstructs encode->hexlify
Browse files Browse the repository at this point in the history
  • Loading branch information
atlas0fd00m committed Aug 28, 2020
1 parent 6248226 commit 66b796c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vstruct/primitives.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import struct
from binascii import hexlify

class v_enum: pass

Expand Down Expand Up @@ -254,7 +254,7 @@ def vsGetFormat(self):
return "%ds" % len(self)

def __repr__(self):
return self._vs_value.encode('hex')
return hexlify(self._vs_value)

class v_str(v_prim):
'''
Expand Down

0 comments on commit 66b796c

Please sign in to comment.