diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-06-14 11:29:05 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-16 15:40:11 +0100 |
| commit | 73d8e82d7a9d891817f0e87109bd86c78efdb9e4 (patch) | |
| tree | 07cce2f84dce2d72c22925e34c4b4f8bc5c50635 /meta/recipes-devtools/python/python3-pyasn1 | |
| parent | c049db897f14ff7bee3f5898e6c0a607deea839b (diff) | |
| download | poky-73d8e82d7a9d891817f0e87109bd86c78efdb9e4.tar.gz | |
python3-pyasn1: upgrade 0.4.8 -> 0.5.0
License-Update: copyright years
(From OE-Core rev: d36e4228bd94ae9a9ca0feeaa9541ed5afafdd44)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-pyasn1')
| -rw-r--r-- | meta/recipes-devtools/python/python3-pyasn1/0001-Fix-DeprecationWarning-__int__-returned-non-int-on-P.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/meta/recipes-devtools/python/python3-pyasn1/0001-Fix-DeprecationWarning-__int__-returned-non-int-on-P.patch b/meta/recipes-devtools/python/python3-pyasn1/0001-Fix-DeprecationWarning-__int__-returned-non-int-on-P.patch deleted file mode 100644 index 30ac9a6684..0000000000 --- a/meta/recipes-devtools/python/python3-pyasn1/0001-Fix-DeprecationWarning-__int__-returned-non-int-on-P.patch +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | From db8f1a7930c6b5826357646746337dafc983f953 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ilya Etingof <etingof@gmail.com> | ||
| 3 | Date: Sat, 21 Mar 2020 19:05:03 +0100 | ||
| 4 | Subject: [PATCH] Fix `DeprecationWarning: __int__ returned non-int` on Py3 | ||
| 5 | |||
| 6 | In `BitString.__int__()` | ||
| 7 | Upstream-Status: Backport | ||
| 8 | Signed-off-by: Yulong Liu <yulong.liu@windriver.com> | ||
| 9 | --- | ||
| 10 | pyasn1/type/univ.py | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py | ||
| 14 | index 10924c3..488241f 100644 | ||
| 15 | --- a/pyasn1/type/univ.py | ||
| 16 | +++ b/pyasn1/type/univ.py | ||
| 17 | @@ -551,7 +551,7 @@ class BitString(base.SimpleAsn1Type): | ||
| 18 | return self.clone(SizedInteger(self._value >> count).setBitLength(max(0, len(self._value) - count))) | ||
| 19 | |||
| 20 | def __int__(self): | ||
| 21 | - return self._value | ||
| 22 | + return int(self._value) | ||
| 23 | |||
| 24 | def __float__(self): | ||
| 25 | return float(self._value) | ||
| 26 | -- | ||
| 27 | 2.25.1 | ||
| 28 | |||
