mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
change print to warning
This commit is contained in:
parent
f174941e1d
commit
37697bc6ce
1 changed files with 8 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ import collections
|
|||
import uuid
|
||||
import json
|
||||
import copy
|
||||
import warnings
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
import clique
|
||||
|
|
@ -100,9 +101,13 @@ def _convert_reversed_attr(
|
|||
f" Using '{main_label}' value."
|
||||
)
|
||||
elif depr_value is not None:
|
||||
print(
|
||||
f"Using deprecated argument '{depr_label}'"
|
||||
f" please use '{main_label}' instead."
|
||||
warnings.warn(
|
||||
(
|
||||
"DEPRECATION WARNING: Using deprecated argument"
|
||||
f" '{depr_label}' please use '{main_label}' instead."
|
||||
),
|
||||
DeprecationWarning,
|
||||
stacklevel=4,
|
||||
)
|
||||
main_value = not depr_value
|
||||
elif main_value is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue