Skip to content

Commit f8ecec0

Browse files
committed
fix: correct noqa comment placement for isPrime long() call on line 403
1 parent 992289d commit f8ecec0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libcrypto/cryptod/Crypto/Util/number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ def isPrime(N, false_positive_prob=1e-6, randfunc=None):
400400

401401
if _fastmath is not None:
402402
return _fastmath.isPrime(
403-
long(N),
403+
long(N), # noqa: F821 - long exists in Python 2
404404
false_positive_prob,
405-
randfunc, # noqa: F821 - long exists in Python 2
405+
randfunc,
406406
)
407407

408408
if N < 3 or N & 1 == 0:

0 commit comments

Comments
 (0)