Move collections into collect space
authorScott Gasch <[email protected]>
Mon, 27 Sep 2021 16:06:50 +0000 (09:06 -0700)
committerScott Gasch <[email protected]>
Mon, 27 Sep 2021 16:06:50 +0000 (09:06 -0700)
collect/bidict.py [moved from bidict.py with 100% similarity]
collect/trie.py [moved from trie.py with 100% similarity]
letter_compress.py

similarity index 100%
rename from bidict.py
rename to collect/bidict.py
similarity index 100%
rename from trie.py
rename to collect/trie.py
index 01d40f9ed636275cb2c3727d79e4a61db67f941d..4374edd352eab5e19e7c0a6a39345d63220d0d10 100644 (file)
@@ -2,10 +2,10 @@
 
 import bitstring
 
-import bidict
+from collect.bidict import bidict
 
 
-special_characters = bidict.bidict(
+special_characters = bidict(
     {
         ' ': 27,
         '.': 28,
@@ -24,7 +24,7 @@ def compress(uncompressed: str) -> bytes:
 
     >>> import binascii
     >>> binascii.hexlify(compress('this is a test'))
-    b'99d12d225a06a6494c'
+    b'a2133da67b0ee859d0'
 
     """
     compressed = bitstring.BitArray()
@@ -47,7 +47,7 @@ def decompress(kompressed: bytes) -> str:
     its original form.
 
     >>> import binascii
-    >>> decompress(binascii.unhexlify(b'99d12d225a06a6494c'))
+    >>> decompress(binascii.unhexlify(b'a2133da67b0ee859d0'))
     'this is a test'
 
     """