Skip to content

Commit 1fa82c1

Browse files
committed
Minor adaptations
1 parent 5d566eb commit 1fa82c1

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

File renamed without changes.

codext/xor_byte.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ def encode(text, errors="strict"):
1919
r = _xorn(ensure_str(text), i)
2020
return r, len(r)
2121
return encode
22-
xor_byte_decode = xor_byte_encode
2322

2423

2524
# note: the integer behind "xor" is captured for sending to the parametrizable
2625
# encode and decode functions "xor_byte_**code"
27-
add("xorN", xor_byte_encode, xor_byte_decode,
26+
add("xorN", xor_byte_encode, xor_byte_encode,
2827
r"(?i)xor[-_]?([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$")

0 commit comments

Comments
 (0)