Skip to content

Commit b2318cb

Browse files
minor changes
1 parent c917bc3 commit b2318cb

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

main.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ def decrypt_code(code, contents: list[str]):
5353
return words[word_idx]
5454

5555
def decrypt(phrase, contents: list[str], delimiter='.'):
56-
decrypter = partial(decrypt_code, contents=contents)
57-
return ' '.join(map(decrypter, phrase.split(delimiter)))
56+
return ' '.join(
57+
map(
58+
partial(
59+
decrypt_code,
60+
contents=contents
61+
),
62+
phrase.split(delimiter)
63+
)
64+
)
5865

5966

6067
def is_pdf_valid(pdf_obj):
@@ -86,7 +93,9 @@ def print_figlet():
8693
\___ \| | '_ \ / _` | | __|
8794
____) | | | | | (_| |_| |
8895
|_____/|_|_| |_|\__,_(_)_|
89-
\n\n'''
96+
\n
97+
The project url (open-source): https://github.com/sina-programer/BCipher
98+
\n'''
9099

91100

92101
if __name__ == "__main__":

0 commit comments

Comments
 (0)