Skip to content

Conversation

@ashah-splunk
Copy link
Contributor

  • removed code specific for python version2
  • removed six.py dependency which bridged support for python versions 2 and 3
  • refactored code as per pylint suggestions
  • used python3 features to improve both efficiency and performance
  • removed future imports required to support py2 and py3 versions
  • updated test cases to use py3 code
  • updated CI test configuration to execute test cases in python 3.7 and 3.9 versions
  • updated code to remove code deprecation warnings

@shilpabijam
Copy link
Contributor

There are some test failures in latest and 8.1 runs, could we address them?

Copy link

@jervin-splunk jervin-splunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the places noted in the other comments, there are some lingering references to Python 2.7 and 2.6 which should likely be cleaned up as well in these files:

splunk-sdk-python/tests/README.md
splunk-sdk-python/scripts/test_specific.sh
splunk-sdk-python/README.md

@ashah-splunk ashah-splunk changed the title WIP :- Removed Support for Python2 Removed Support for Python2 Mar 14, 2024
Copy link

@jervin-splunk jervin-splunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revisions look good.

@ichaer
Copy link
Contributor

ichaer commented Mar 14, 2024

I'm approving anticipating that the two pending comments will be resolved. They are not about particularly concerning issues, but they are trivial to implement and shouldn't be postponed.

- line separators were mistakenly updated, hence reverting it back.
@ashah-splunk ashah-splunk merged commit f37f17e into develop Mar 15, 2024
@Ickerday Ickerday deleted the py3-code-migration branch August 18, 2025 09:08
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.

7 participants