forked from pool/python-sortedcollections
- Update to 1.2.1:
- Update self._dict_* methods to use dict.__* functions directly. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcollections?expand=0&rev=13
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
--- a/sortedcollections/recipes.py
|
||||
+++ b/sortedcollections/recipes.py
|
||||
@@ -86,14 +86,14 @@ class ItemSortedDict(SortedDict):
|
||||
if key not in self:
|
||||
raise KeyError(key)
|
||||
self._list_remove(key)
|
||||
- self._dict_delitem(key)
|
||||
+ dict.__delitem__(self, key)
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
"``mapping[key] = value``"
|
||||
if key in self:
|
||||
self._list_remove(key)
|
||||
- self._dict_delitem(key)
|
||||
- self._dict_setitem(key, value)
|
||||
+ dict.__delitem__(self, key)
|
||||
+ dict.__setitem__(self, key, value)
|
||||
self._list_add(key)
|
||||
|
||||
_setitem = __setitem__
|
||||
@@ -158,14 +158,14 @@ class ValueSortedDict(SortedDict):
|
||||
if key not in self:
|
||||
raise KeyError(key)
|
||||
self._list_remove(key)
|
||||
- self._dict_delitem(key)
|
||||
+ dict.__delitem__(self, key)
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
"``mapping[key] = value``"
|
||||
if key in self:
|
||||
self._list_remove(key)
|
||||
- self._dict_delitem(key)
|
||||
- self._dict_setitem(key, value)
|
||||
+ dict.__delitem__(self, key)
|
||||
+ dict.__setitem__(self, key, value)
|
||||
self._list_add(key)
|
||||
|
||||
_setitem = __setitem__
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 22 15:04:59 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Update to 1.2.1:
|
||||
- Update self._dict_* methods to use dict.__* functions directly.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 20 11:05:33 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sortedcollections
|
||||
Version: 1.1.2
|
||||
Version: 1.2.1
|
||||
Release: 0
|
||||
Summary: Python Sorted Collections
|
||||
License: Apache-2.0
|
||||
@@ -26,9 +26,6 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/grantjenks/sortedcollections
|
||||
#Source: https://files.pythonhosted.org/packages/source/s/sortedcollections/sortedcollections-%%{version}.tar.gz
|
||||
Source: https://github.com/grantjenks/python-sortedcollections/archive/v%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM method_item.patch gh#grantjenks/python-sortedcollections#12 mcepl@suse.com
|
||||
# Add method_item.patch to replace _del_item and _set_item methods
|
||||
Patch0: method_item.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:11aee33a812235117c469a970885c2edab3915bae5b65d040b7075aa0a6c4d3f
|
||||
size 46442
|
3
v1.2.1.tar.gz
Normal file
3
v1.2.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3fc97afa299d34e4738c43f345ad85a4aec22f1350b11497fd956eb8a69aa5a1
|
||||
size 46440
|
Reference in New Issue
Block a user