From ef43ba0b7b9d2d337e0dcae134a1def36d4780f5 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 19 2020 12:29:52 +0000 Subject: replace deprecated function with logging Relates: https://pagure.io/koji/issue/1440 warnings doesn't behave well with python 3.8 causing segfaults. Let's user simple logging for a while. --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 690bd24..4e2cdb4 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -64,7 +64,6 @@ from koji.daemon import SCM from koji.util import ( base64encode, decode_bytes, - deprecated, dslice, joinpath, move_and_symlink, @@ -13503,7 +13502,7 @@ class HostExports(object): return task.open(host.id) def getTask(self): - deprecated("Call host.openTask is deprecated and will be removed in 1.23") + logging.warn("Call host.getTask is deprecated and will be removed in 1.23") host = Host() host.verify() return host.getTask()