-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcrypto_silence_warnings.patch
More file actions
26 lines (25 loc) · 1.05 KB
/
Copy pathcrypto_silence_warnings.patch
File metadata and controls
26 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- Lib/site.py.orig 2020-11-12 09:59:21.576077736 +0000
+++ Lib/site.py 2021-01-29 10:00:01.732005931 +0000
@@ -63,6 +63,23 @@
import __builtin__
import traceback
+import warnings
+warnings.filterwarnings(
+ 'ignore',
+ category=UserWarning,
+ message='Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.',
+ )
+warnings.filterwarnings(
+ 'ignore',
+ category=UserWarning,
+ message='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.',
+ )
+warnings.filterwarnings(
+ 'ignore',
+ category=UserWarning,
+ message='OpenSSL version 1.0.2 is no longer supported by the OpenSSL project, please upgrade. The next version of cryptography will completely remove support for it.',
+ )
+
# Prefixes for site-packages; add additional prefixes like /usr/local here
PREFIXES = [sys.prefix, sys.exec_prefix]
# Enable per user site-packages directory