Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Update
python-PyTrie
fix-sorting-py2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-sorting-py2.patch of Package python-PyTrie
Index: PyTrie-0.3.1/pytrie.py =================================================================== --- PyTrie-0.3.1.orig/pytrie.py +++ PyTrie-0.3.1/pytrie.py @@ -51,24 +51,11 @@ import sortedcontainers # Python 3 interoperability PY3 = sys.version_info[0] == 3 -if PY3: - def itervalues(d): # pylint: disable=invalid-name - return d.values() +def itervalues(d): # pylint: disable=invalid-name + return d.values() - def iteritems(d): # pylint: disable=invalid-name - return d.items() -else: - def itervalues(d): # pylint: disable=invalid-name - if hasattr(d, 'itervalues'): - return d.itervalues() - - return d.values() - - def iteritems(d): # pylint: disable=invalid-name - if hasattr(d, 'iteritems'): - return d.iteritems() - - return d.items() +def iteritems(d): # pylint: disable=invalid-name + return d.items() # Singleton sentinel - works with pickling
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor