aboutsummaryrefslogtreecommitdiffstats
path: root/pack.py
diff options
context:
space:
mode:
Diffstat (limited to 'pack.py')
-rwxr-xr-xpack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack.py b/pack.py
index 5dbaf95..cf531af 100755
--- a/pack.py
+++ b/pack.py
@@ -19,7 +19,7 @@ Packs bitfields tagged with their size into untagged bytes.
... 23/7 00/5 02/3 05/5 06/5 00/7
... 13/7 06/5 00/3 00/5 0a/12
... 23/7 00/5 02/3 05/5 06/5 00/7
-... 6f/7 00/5 ff/8 01/1 3e6/10 01/1
+... 6f/7 00/5 ff/8 1/1 3e6/10 1/1
... '''[1:-1]))))
== code 0x80000000
b7 02 01 10
@@ -51,7 +51,7 @@ def byteify(word):
>>> byteify(bits.Bitfield(0x13, 9)),
Traceback (most recent call last):
...
- AssertionError: not byte aligned: 0x13'9
+ AssertionError: not byte aligned: 013/9
"""
assert word.size % 8 == 0, "not byte aligned: {}".format(word)