Skip to content

Commit 3907589

Browse files
committed
Slightly restyled subpackages
1 parent 9f83b01 commit 3907589

31 files changed

Lines changed: 32 additions & 1 deletion

codext/__info__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313

1414
with open(os.path.join(os.path.dirname(__file__), "VERSION.txt")) as f:
1515
__version__ = f.read().strip()
16+

codext/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@ def main():
8181
except:
8282
c = c.decode("latin-1")
8383
print(c, end="")
84+

codext/base/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
from .base100 import *
55
from .base122 import *
66
from .baseN import *
7+

codext/base/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,4 @@ def _decode(input, errors="strict"):
152152
if pattern is None:
153153
pattern = "base{}".format(n)
154154
add("base{}".format(n), encode, decode, pattern)
155+

codext/base/_base2n.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,4 @@ def base2n_decode(string, charset, errors="strict", exc=Base2NDecodeError):
116116
r += chr(int(bs, 2))
117117
np = int(ceil(n_pad * nb_in / 8.0))
118118
return r[:-np] if np > 0 else r
119+

codext/base/ascii85.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ def ascii85_decode(input, errors='strict'):
2222
return base64.a85decode(b(input)), len(input)
2323

2424
add("ascii85", ascii85_encode, ascii85_decode, r"(?i)^ascii[-_]?85$")
25+

codext/base/base100.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ def base100_decode(input, errors='strict'):
4444

4545

4646
add("base100", base100_encode, base100_decode, r"(?i)^(?:base[-_]?100|emoji)$")
47+

codext/base/base122.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ def base122_decode(input, errors="strict"):
1919

2020

2121
add("base122", base122_encode, base122_decode, r"(?i)^base[-_]?122$")
22+

codext/base/base85.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ def base85_decode(input, errors='strict'):
2222
return base64.b85decode(b(input)), len(input)
2323

2424
add("base85", base85_encode, base85_decode, r"(?i)^base[-_]?85$")
25+

codext/base/baseN.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,4 @@
8888
# generic base encodings
8989
for i in range(2, 256):
9090
base(i, r"(?i)^base[-_]?%d[-_]generic$" % i)
91+

0 commit comments

Comments
 (0)