#2264 replace deprecated function with logging
Merged 3 years ago by tkopecek. Opened 3 years ago by tkopecek.
tkopecek/koji issue1440a  into  master

file modified
+1 -2
@@ -64,7 +64,6 @@ 

  from koji.util import (

      base64encode,

      decode_bytes,

-     deprecated,

      dslice,

      joinpath,

      move_and_symlink,
@@ -13503,7 +13502,7 @@ 

          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()

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.

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

3 years ago

rebased onto ef43ba0

3 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

3 years ago

Commit f74da26 fixes this pull-request

Pull-Request has been merged by tkopecek

3 years ago