Skip to content

Commit eb28989

Browse files
committed
fix: move noqa comments to correct lines for long() calls
1 parent 6f3ae37 commit eb28989

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ def getStrongPrime(N, e=0, false_positive_prob=1e-6, randfunc=None):
279279
# Use the accelerator if available
280280
if _fastmath is not None:
281281
return _fastmath.getStrongPrime(
282-
long(N),
283-
long(e),
284-
false_positive_prob, # noqa: F821 - long exists in Python 2
282+
long(N), # noqa: F821 - long exists in Python 2
283+
long(e), # noqa: F821 - long exists in Python 2
284+
false_positive_prob,
285285
randfunc,
286286
)
287287

@@ -400,8 +400,8 @@ def isPrime(N, false_positive_prob=1e-6, randfunc=None):
400400

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

406406
if N < 3 or N & 1 == 0:
407407
return N == 2

0 commit comments

Comments
 (0)