forked from pool/python-marathon
- fix build, run tests
- added patches
fix https://github.com/thefactory/marathon-python/issues/284
+ python-marathon-no-2to3.patch
fix 1850734b5b.diff
+ python-marathon-use-collections.abc.patch
OBS-URL: https://build.opensuse.org/request/show/958036
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marathon?expand=0&rev=14
16 lines
398 B
Diff
16 lines
398 B
Diff
diff --git a/marathon/util.py b/marathon/util.py
|
|
index d9f5664..af2932e 100644
|
|
--- a/marathon/util.py
|
|
+++ b/marathon/util.py
|
|
@@ -1,4 +1,10 @@
|
|
-import collections
|
|
+# collections.abc new as of 3.3, and collections is deprecated. collections
|
|
+# will be unavailable in 3.9
|
|
+try:
|
|
+ import collections.abc as collections
|
|
+except ImportError:
|
|
+ import collections
|
|
+
|
|
import datetime
|
|
import logging
|