Skip to content

Commit 35b96fc

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent 0889327 commit 35b96fc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ciphers/affine_cipher.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,18 @@ def check_keys(keyA, keyB, mode):
3333
if mode == "encrypt":
3434
if keyA == 1:
3535
sys.exit(
36-
"The affine cipher becomes weak when key " "A is set to 1. Choose different key"
36+
"The affine cipher becomes weak when key "
37+
"A is set to 1. Choose different key"
3738
)
3839
if keyB == 0:
3940
sys.exit(
40-
"The affine cipher becomes weak when key " "B is set to 0. Choose different key"
41+
"The affine cipher becomes weak when key "
42+
"B is set to 0. Choose different key"
4143
)
4244
if keyA < 0 or keyB < 0 or keyB > len(SYMBOLS) - 1:
4345
sys.exit(
44-
"Key A must be greater than 0 and key B must " f"be between 0 and {len(SYMBOLS) - 1}."
46+
"Key A must be greater than 0 and key B must "
47+
f"be between 0 and {len(SYMBOLS) - 1}."
4548
)
4649
if cryptomath.gcd(keyA, len(SYMBOLS)) != 1:
4750
sys.exit(

0 commit comments

Comments
 (0)