Skip to content

Conversation

@GeorgeVince
Copy link

@GeorgeVince GeorgeVince commented Oct 2, 2025

test/unit/services/test_companies.py: 34 warnings
  /usr/local/lib/python3.8/site-packages/sqlpy/sqlpy.py:462: DeprecationWarning: 'U' mode is deprecated
    with open(file, 'rU') as queries_file:

What's New In Python 3.4 (The Deprecation Warning):
This release note confirms that the DeprecationWarning was introduced in Python 3.4.

Python 3.4 Release Notes (Check the Deprecated section)

Python 3.11 Deprecation/Removal Notes (The Final Removal):
This documentation confirms that the 'U' mode, after being deprecated for years.

TODO fix tox:
https://github.com/9fin/sqlpy/blob/master/tox.ini#L8

@GeorgeVince GeorgeVince changed the title fix: remove deprecated U flag in read() feat: remove deprecated U flag in read() Oct 2, 2025
Copy link

@Taylor-Mudd-9fin Taylor-Mudd-9fin left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Deprecated since 3.3, seems sensible to drop support now 🚀

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