Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-42264: Deprecate sqlite3.OptimizedUnicode #23163

Merged
merged 11 commits into from
Nov 17, 2020

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Nov 5, 2020

Fixes #86430

@erlend-aasland erlend-aasland changed the title bpo-42264: Deprecate OptimizedUnicode bpo-42264: Deprecate sqlite3.OptimizedUnicode Nov 5, 2020
Lib/sqlite3/deprecated.py Outdated Show resolved Hide resolved
@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@erlend-aasland
Copy link
Contributor Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@serhiy-storchaka: please review the changes made to this pull request.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM.

@erlend-aasland
Copy link
Contributor Author

Thanks for reviewing, @serhiy-storchaka!

@serhiy-storchaka
Copy link
Member

And it could be good idea to add tests for filename to all existing deprecation tests.

@erlend-aasland
Copy link
Contributor Author

And it could be good idea to add tests for filename to all existing deprecation tests.

I agree. I can open an issue for it.

@erlend-aasland
Copy link
Contributor Author

And it could be good idea to add tests for filename to all existing deprecation tests.

There's a lot:

bash$ grep -r "DeprecationWarning" Lib/test | grep -v " as " | wc -l                                                                                                               (master)cpython.git
     519

Lib/sqlite3/deprecated.py Outdated Show resolved Hide resolved
Doc/whatsnew/3.10.rst Outdated Show resolved Hide resolved
Erlend Egeberg Aasland and others added 2 commits November 5, 2020 20:11
Co-authored-by: Victor Stinner <vstinner@python.org>
@erlend-aasland
Copy link
Contributor Author

PTAL, @vstinner

@erlend-aasland
Copy link
Contributor Author

FYI, Ubuntu CI hangs again:
test_virtual_event (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... Timeout (0:20:00)!

@vstinner
Copy link
Member

vstinner commented Nov 6, 2020

test_virtual_event (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... Timeout (0:20:00)!

It is a know issue https://bugs.python.org/issue42142

You can ignore it. When it happens, I simply re-run the job until it pass.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

Good, it's way better! More comments.

Lib/sqlite3/__init__.py Outdated Show resolved Hide resolved
Erlend E. Aasland and others added 2 commits November 6, 2020 20:08
Use the same text as the What's New entry.
Co-authored-by: Victor Stinner <vstinner@python.org>
@erlend-aasland
Copy link
Contributor Author

Please take another look, @vstinner.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

@serhiy-storchaka: Do you want to double check this PR?

@erlend-aasland
Copy link
Contributor Author

@serhiy-storchaka Will you merge this after double checking, or will that be up to another core dev to decide?

@serhiy-storchaka serhiy-storchaka merged commit a1f401a into python:master Nov 17, 2020
@erlend-aasland erlend-aasland deleted the bpo-42264 branch November 17, 2020 19:55
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
erlend-aasland added a commit to erlend-aasland/cpython that referenced this pull request May 9, 2022
The following sqlite3 features were deprecated in 3.10, scheduled for
removal in 3.12:

- sqlite3.OptimizedUnicode (pythongh-23163)
- sqlite3.enable_shared_cache (pythongh-24008)

Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
erlend-aasland added a commit that referenced this pull request May 16, 2022
The following sqlite3 features were deprecated in 3.10, scheduled for
removal in 3.12:

- sqlite3.OptimizedUnicode (gh-23163)
- sqlite3.enable_shared_cache (gh-24008)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
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.

5 participants