libmodulemd/0001-Add-missing-staticmethod-for-python2.patch
DistroBaker ef6dfbebe6 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/libmodulemd.git#d64a0948084f1f4493494a7a9b3744ff534ee68b
2021-01-12 16:05:01 +00:00

32 lines
1.0 KiB
Diff

From d8722735c4c5198a0a11ddaebf011034f677aa7f Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Mon, 11 Jan 2021 15:25:03 -0500
Subject: [PATCH 1/2] Add missing @staticmethod for python2
Fixes: https://github.com/fedora-modularity/libmodulemd/issues/537
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
bindings/python/gi/overrides/Modulemd.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/bindings/python/gi/overrides/Modulemd.py b/bindings/python/gi/overrides/Modulemd.py
index 9e6d1c212e663c4d1392ce9c8d4ea66abbc9f7ac..23d5218cbe37c9d08f9d88debb541f6467b68404 100644
--- a/bindings/python/gi/overrides/Modulemd.py
+++ b/bindings/python/gi/overrides/Modulemd.py
@@ -26,10 +26,11 @@ Modulemd = get_introspection_module("Modulemd")
__all__ = []
class ModulemdUtil(object):
+ @staticmethod
def strip_gtype(method):
@functools.wraps(method)
def wrapped(*args, **kwargs):
ret = method(*args, **kwargs)
if len(ret) == 2:
--
2.29.2