Skip to content

Fix: Replace bare print with warning and remove deprecated Python 2 code#556

Open
mithlohar144 wants to merge 4 commits intodswah:mainfrom
mithlohar144:fix/code-quality-issues
Open

Fix: Replace bare print with warning and remove deprecated Python 2 code#556
mithlohar144 wants to merge 4 commits intodswah:mainfrom
mithlohar144:fix/code-quality-issues

Conversation

@mithlohar144
Copy link
Copy Markdown

  • Replace bare 'print()' statement with 'warnings.warn()' in pygam.py line 821 for convergence alerts
  • Remove deprecated Python 2 compatibility code for StringIO import in test_GAM_methods.py
  • Simplify import to use only Python 3 'io.StringIO'
  • All tests pass with these changes

- Replace bare 'print()' statement with 'warnings.warn()' in pygam.py line 821 for convergence alerts
- Remove deprecated Python 2 compatibility code for StringIO import in test_GAM_methods.py
- Simplify import to use only Python 3 'io.StringIO'
- All tests pass with these changes
@mithlohar144
Copy link
Copy Markdown
Author

mithlohar144 commented Mar 28, 2026

I addressed the CI follow-up items and pushed an update.

Fixed the pre-commit formatting issue (trailing whitespace)
Synced the feature branch with the latest commit
Re-ran local checks before pushing
Latest commit: b3632f7
Please review the updated CI results, especially Windows + Python 3.14.

@mithlohar144
Copy link
Copy Markdown
Author

mithlohar144 commented Mar 28, 2026

I addressed the CI follow-up items and pushed an update.

Fixed the pre-commit formatting issue (trailing whitespace)
Synced the feature branch with the latest commit
Re-ran local checks before pushing
Latest commit: e501e7d
Please review the updated CI results, especially Windows + Python 3.14.

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