Skip to content

Commit 5b98ab4

Browse files
committed
feat: prepare "contrib" area
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent f61abe9 commit 5b98ab4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

cyclonedx/model/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from a `cyclonedx.parser.BaseParser` implementation.
2323
"""
2424

25+
import sys
2526
import re
2627
from collections.abc import Generator, Iterable
2728
from datetime import datetime
@@ -31,9 +32,14 @@
3132
from typing import Any, Optional, Union
3233
from urllib.parse import quote as url_quote
3334
from uuid import UUID
34-
from warnings import deprecated, warn
35+
from warnings import warn
3536
from xml.etree.ElementTree import Element as XmlElement # nosec B405
3637

38+
if sys.version_info >= (3, 13):
39+
from warnings import deprecated
40+
else:
41+
from typing_extensions import deprecated
42+
3743
import py_serializable as serializable
3844
from sortedcontainers import SortedSet
3945

0 commit comments

Comments
 (0)