Skip to content

fix(python3): replace six shims and fix deprecation warnings [VC-55627]#206

Merged
anapatil-panw merged 1 commit into
masterfrom
vc-55627-py3-compat
Jul 2, 2026
Merged

fix(python3): replace six shims and fix deprecation warnings [VC-55627]#206
anapatil-panw merged 1 commit into
masterfrom
vc-55627-py3-compat

Conversation

@ndevarapalli-panw

Copy link
Copy Markdown
Contributor

Summary

  • Replace six library with native Python 3 equivalents (str, bytes, urllib.parse) — unnecessary since Python ≥ 3.9.2 is already required
  • Fix datetime.utcnow() deprecated in Python 3.12 with datetime.now(timezone.utc)
  • Fix cert.not_valid_after deprecated in cryptography 42+ with cert.not_valid_after_utc
  • Fix e.message / err.message in error handlers (causes AttributeError on Python 3 when triggered)

Test plan

  • 41/41 unit tests pass with -W error (warnings-as-errors) - no deprecation warnings remain
  • Replacements verified semantically identical at runtime before applying

Closes VC-55627

@anapatil-panw anapatil-panw merged commit 08b2828 into master Jul 2, 2026
3 checks passed
@anapatil-panw anapatil-panw deleted the vc-55627-py3-compat branch July 2, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants