Vendor ordereddict for python2.6 only (#6931)

* Vendor ordereddict for python2.6 only

This commit substitutes the custom module 'ordereddict_backport' with
the more known 'ordereddict' and vendors it only for python 2.6. Other
supported versions of python will use 'collections.OrderedDict'.

* Use absolute imports also for python 2.6

See PEP-328 for more information on the subject

* Added provenance of vendored ordereddict
This commit is contained in:
Massimiliano Culpo
2018-01-16 07:00:39 +01:00
committed by GitHub
parent 498c522a31
commit 1fb38c9e04
10 changed files with 185 additions and 281 deletions

View File

@@ -86,9 +86,10 @@
orderddict
----------
* Homepage: http://code.activestate.com/recipes/576693-ordered-dictionary-for-py24/
* Usage: We include our own version to be Python 2.6 compatible.
* Version: Unversioned
* Homepage: https://pypi.org/project/ordereddict/
* Usage: A drop-in substitute for Py2.7's new collections.OrderedDict
that works in Python 2.4-2.6.
* Version: 1.1
py
--