15
0

Accepting request 958036 from home:pgajdos:python

- 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
This commit is contained in:
2022-02-28 14:14:12 +00:00
committed by Git OBS Bridge
parent 7f18867aff
commit fc6b9a2ec5
5 changed files with 62 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
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