Skip to content

Commit 60630cf

Browse files
julien-langCopilot
andauthored
SG-40633 Postpone removal to September 2026 (#1070)
--------- Co-authored-by: Copilot <[email protected]>
1 parent d89a363 commit 60630cf

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

python/tank/authentication/sso_saml2/core/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ def __getattr__(name):
4343
if is_import:
4444
raise
4545

46+
deprecation_message = (
47+
f"Accessing '{__name__}.{name}' directly without explicit import "
48+
"is deprecated and compatibility will be discontinued after "
49+
f"September 2026. Explicitly import '{__name__}.{name}' instead."
50+
)
51+
4652
import warnings
4753
warnings.warn(
48-
f"Accessing '{__name__}.{name}' directly without explicit import "
49-
"is deprecated and will be removed at any time after 2026-07. "
50-
f"Explicitly import '{__name__}.{name}' instead.",
54+
deprecation_message,
5155
DeprecationWarning,
5256
stacklevel=2,
5357
)
5458

5559
try:
5660
import tank
5761
logger = tank.LogManager.get_logger(__name__)
58-
logger.warning(
59-
f"Accessing '{__name__}.{name}' directly without explicit import "
60-
"is deprecated and will be removed at any time after 2026-07. "
61-
f"Explicitly import '{__name__}.{name}' instead.",
62-
)
62+
logger.warning(deprecation_message)
6363
except:
6464
pass # nosec
6565

python/tank_vendor/sgutils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
import warnings
3232
warnings.warn(
3333
"The 'sgutils' module, including the 'ensure_binary', 'ensure_str', "
34-
"and 'ensure_text' methods, is deprecated in FPTR and will be removed "
35-
"at any time after March 2026. "
34+
"and 'ensure_text' methods, is deprecated in FPT and will be removed "
35+
"after September 2026. "
3636
"Use the built-in str.encode() and/or bytes.decode() methods instead "
3737
"according to the expected data type.",
3838
DeprecationWarning,
@@ -48,7 +48,7 @@ def ensure_binary(s, encoding="utf-8", errors="strict"):
4848
"""
4949
warnings.warn(
5050
"The 'sgutils.ensure_binary' method is deprecated and will be "
51-
"removed at any time after March 2026.",
51+
"removed after September 2026.",
5252
DeprecationWarning,
5353
stacklevel=2,
5454
)
@@ -69,7 +69,7 @@ def ensure_str(s, encoding="utf-8", errors="strict"):
6969
"""
7070
warnings.warn(
7171
"The 'sgutils.ensure_str' method is deprecated and will be "
72-
"removed at any time after March 2026.",
72+
"removed after September 2026.",
7373
DeprecationWarning,
7474
stacklevel=2,
7575
)
@@ -91,7 +91,7 @@ def ensure_text(*args, **kwargs):
9191
"""
9292
warnings.warn(
9393
"The 'sgutils.ensure_text' method is deprecated and will be "
94-
"removed at any time after March 2026.",
94+
"removed after September 2026.",
9595
DeprecationWarning,
9696
stacklevel=2,
9797
)

python/tank_vendor/six.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
__version__ = "1.13.0"
3434

3535
warnings.warn(
36-
"The 'six' module is deprecated in FPTR and will be removed at any time "
37-
"after March 2026. Please update your code to use standard Python 3 "
36+
"The 'six' module is deprecated in FPT and will be removed after September "
37+
"2026. Please update your code to use standard Python 3 "
3838
"features directly, as Python 2 compatibility is no longer required.",
3939
DeprecationWarning,
4040
stacklevel=2,

0 commit comments

Comments
 (0)