diff options
author | Ross Burton <ross@burtonini.com> | 2022-01-14 14:10:08 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-01-18 08:59:58 -0800 |
commit | 84769a963974cffc5d877e57a46a289a84bc293d (patch) | |
tree | d83cd83cd726a7d27cd8a8ce08e1b6bde4b0a59e /meta-python/recipes-devtools/python/python3-pycrypto/0001-Replace-time.clock-with-time.process_time.patch | |
parent | 214cfe90f7ce72736d9814624550bb6935b842e7 (diff) | |
download | meta-openembedded-84769a963974cffc5d877e57a46a289a84bc293d.tar.gz |
python3-pycrypto: remove obsolete pycrypto module
pycrypto hasn't had a commit upstream since June 2014, which for a
security-critical module is not a good sign.
Everyone has migrated to the pycryptodome or cryptography modules, so
remove pycrypto from meta-python.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pycrypto/0001-Replace-time.clock-with-time.process_time.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pycrypto/0001-Replace-time.clock-with-time.process_time.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pycrypto/0001-Replace-time.clock-with-time.process_time.patch b/meta-python/recipes-devtools/python/python3-pycrypto/0001-Replace-time.clock-with-time.process_time.patch deleted file mode 100644 index 282fdd3e2b..0000000000 --- a/meta-python/recipes-devtools/python/python3-pycrypto/0001-Replace-time.clock-with-time.process_time.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 1d90727ff2368012d6e2f91b1a3198f626495b7f Mon Sep 17 00:00:00 2001 | ||
2 | From: Ming Liu <liu.ming50@gmail.com> | ||
3 | Date: Sat, 25 Jan 2020 14:36:16 +0100 | ||
4 | Subject: [PATCH] Replace time.clock() with time.process_time() | ||
5 | |||
6 | The use of time.clock() is deprecated in python 3.8, change to use | ||
7 | time.process_time(). | ||
8 | |||
9 | Reference: | ||
10 | https://docs.python.org/3.3/library/time.html#time.clock | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Ming Liu <liu.ming50@gmail.com> | ||
15 | --- | ||
16 | lib/Crypto/Random/_UserFriendlyRNG.py | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/lib/Crypto/Random/_UserFriendlyRNG.py b/lib/Crypto/Random/_UserFriendlyRNG.py | ||
20 | index 957e006..d2a0259 100644 | ||
21 | --- a/lib/Crypto/Random/_UserFriendlyRNG.py | ||
22 | +++ b/lib/Crypto/Random/_UserFriendlyRNG.py | ||
23 | @@ -74,7 +74,7 @@ class _EntropyCollector(object): | ||
24 | self._time_es.feed(struct.pack("@I", int(2**30 * (t - floor(t))))) | ||
25 | |||
26 | # Add the fractional part of time.clock() | ||
27 | - t = time.clock() | ||
28 | + t = time.process_time() | ||
29 | self._clock_es.feed(struct.pack("@I", int(2**30 * (t - floor(t))))) | ||
30 | |||
31 | |||
32 | -- | ||
33 | 2.7.4 | ||
34 | |||