Skip to content

Commit 61c0a7d

Browse files
committed
Remove obsolete 32-bit Python on 64-bit Windows warning
Removes the runtime warning (and its PROCESSOR_ARCHITEW6432 detection, plus the now-unused os, sys, warnings imports) now that 32-bit Windows is no longer supported.
1 parent 1642696 commit 61c0a7d

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

  • src/cryptography/hazmat/bindings/openssl

src/cryptography/hazmat/bindings/openssl/binding.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44

55
from __future__ import annotations
66

7-
import os
8-
import sys
97
import threading
108
import types
119
import typing
12-
import warnings
1310
from collections.abc import Callable
1411

1512
import cryptography
@@ -108,15 +105,3 @@ def _verify_package_version(version: str) -> None:
108105
_verify_package_version(cryptography.__version__)
109106

110107
Binding.init_static_locks()
111-
112-
if (
113-
sys.platform == "win32"
114-
and os.environ.get("PROCESSOR_ARCHITEW6432") is not None
115-
):
116-
warnings.warn(
117-
"You are using cryptography on a 32-bit Python on a 64-bit Windows "
118-
"Operating System. Cryptography will be significantly faster if you "
119-
"switch to using a 64-bit Python.",
120-
UserWarning,
121-
stacklevel=2,
122-
)

0 commit comments

Comments
 (0)