diff options
Diffstat (limited to 'python_collections.patch')
-rw-r--r-- | python_collections.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/python_collections.patch b/python_collections.patch new file mode 100644 index 000000000000..4515a328ab02 --- /dev/null +++ b/python_collections.patch @@ -0,0 +1,26 @@ +diff --git a/docs/exts/sphinxtr/custombackports.py b/docs/exts/sphinxtr/custombackports.py +index 8741cd1f..a2657d2d 100644 +--- a/docs/exts/sphinxtr/custombackports.py ++++ b/docs/exts/sphinxtr/custombackports.py +@@ -1,9 +1,11 @@ + import collections + ++collections_abc = getattr(collections, 'abc', collections) ++ + Set = set + + try: +- from collections import OrderedDict ++ from collections_abc import OrderedDict + except ImportError: + class OrderedDict(dict): + 'Dictionary that remembers insertion order' +@@ -252,7 +254,7 @@ except ImportError: + + KEY, PREV, NEXT = range(3) + +-class OrderedSet(collections.MutableSet): ++class OrderedSet(collections_abc.MutableSet): + """ + From: http://code.activestate.com/recipes/576694/ + """ |