Learn more about these different git repos.
Other Git URLs
c3288ba
@@ -9,17 +9,14 @@
import sys
import unittest
- try:
- import imp
- importlib = None
- except ImportError:
- import importlib
- imp = None
-
import koji
import koji.util
import koji.plugin
+ # check which import machinery the lib is using
+ imp = getattr(koji.plugin, 'imp', None)
+ importlib = koji.plugin.importlib
+
class TestCallbackDecorators(unittest.TestCase):
Fixes https://pagure.io/koji/issue/4306
tested on py 3.11/3.13
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
Metadata Update from @tkopecek: - Pull-request untagged with: testing-ready - Pull-request tagged with: no_qe
Commit fb2bbaf fixes this pull-request
Pull-Request has been merged by tkopecek
Fixes https://pagure.io/koji/issue/4306