Skip to content

Commit 55d06b5

Browse files
authored
Update encode.py
Added global for ZWCharacterSelections in __encodeBase.
1 parent 2da5ab4 commit 55d06b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

PyZeroWidth/encode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def __tri(number: int) -> str:
149149

150150

151151
def __encodeBase(text: str, secret: str, base: str, encoding: str, fillAmount: int) -> str:
152+
global ZWCharacterSelections
152153
global ZWCharacters
153154

154155
if not any([encoding.lower() in alis for alis in ZWCharacterSelections]): return None

0 commit comments

Comments
 (0)