Skip to content

Conversation

@sbshah97
Copy link

Update create_ssl_context method in _SSLAdapter class to use ssl.PROTOCOL_TLS_CLIENT instead of deprecated options.

  • Replace ssl.OP_NO_SSLv2, ssl.OP_NO_SSLv3, and ssl.OP_NO_TLSv1 with ssl.PROTOCOL_TLS_CLIENT in smartsheet/session.py.
  • Add a new test file tests/integration/test_ssl.py to verify the absence of deprecation warnings.
  • Add a test case in tests/integration/test_ssl.py to check for deprecation warnings when creating an SSL context.

Update `create_ssl_context` method in `_SSLAdapter` class to use `ssl.PROTOCOL_TLS_CLIENT` instead of deprecated options.

* Replace `ssl.OP_NO_SSLv2`, `ssl.OP_NO_SSLv3`, and `ssl.OP_NO_TLSv1` with `ssl.PROTOCOL_TLS_CLIENT` in `smartsheet/session.py`.
* Add a new test file `tests/integration/test_ssl.py` to verify the absence of deprecation warnings.
* Add a test case in `tests/integration/test_ssl.py` to check for deprecation warnings when creating an SSL context.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/sbshah97/smartsheet-python-sdk?shareId=XXXX-XXXX-XXXX-XXXX).
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.

1 participant