aboutsummaryrefslogblamecommitdiff
path: root/lang/spidermonkey78/files/patch-python_mozbuild_mozbuild_backend_configenvironment.py
blob: fd3d705fefbfefb134604a374d7d07770a9f4d43 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                       
--- python/mozbuild/mozbuild/backend/configenvironment.py.orig	2021-03-15 15:52:37 UTC
+++ python/mozbuild/mozbuild/backend/configenvironment.py
@@ -9,8 +9,13 @@ import six
 import sys
 import json
 
-from collections import Iterable, OrderedDict
+from collections import OrderedDict
 from types import ModuleType
+
+if sys.version.startswith('2'):
+    from collections import Iterable
+else:
+    from collections.abc import Iterable
 
 import mozpack.path as mozpath