mirror of https://github.com/dirtbags/netarch.git
No, really
This commit is contained in:
parent
6c2ee3b993
commit
297598b7de
|
@ -200,6 +200,12 @@ def bin(i, bits=None):
|
|||
return BitVector(i, bits).bitstr()
|
||||
|
||||
|
||||
def unhex(s):
|
||||
"""Decode a string as hex, stripping whitespace first"""
|
||||
|
||||
return [ord(i) for i in s.replace(' ', '').decode('hex')]
|
||||
|
||||
|
||||
##
|
||||
## Codecs
|
||||
##
|
||||
|
|
|
@ -17,7 +17,6 @@ class GapString:
|
|||
self.length = 0
|
||||
self.drop = drop
|
||||
if init:
|
||||
print init
|
||||
self.append(init)
|
||||
|
||||
def __len__(self):
|
||||
|
|
Loading…
Reference in New Issue