depot/third_party/nixpkgs/pkgs/development/python-modules/cryptography/cryptography-py27-warning.patch
Default email b6d97fd731 Project import generated by Copybara.
GitOrigin-RevId: be0b453d7c7eee2090962c9a83749b024ff9acf5
2020-12-25 14:55:36 +01:00

14 lines
468 B
Diff

Delete the warning that breaks tests of dependent projects.
--- a/src/cryptography/__init__.py
+++ b/src/cryptography/__init__.py
@@ -33,9 +32,0 @@ __all__ = [
-
-if sys.version_info[0] == 2:
- warnings.warn(
- "Python 2 is no longer supported by the Python core team. Support for "
- "it is now deprecated in cryptography, and will be removed in the "
- "next release.",
- CryptographyDeprecationWarning,
- stacklevel=2,
- )