really drop python<=3.7 support #13947
Open
+44
−45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Description
Filter all python code over
pupgrade --py38-plus
.Motivation and Context
Make code cleaner.
Types of changes
Checklist
PR Type
enhancement
Description
format
method for string formatting across various scripts and modules.Changes walkthrough 📝
convert_protocol_to_json.py
Simplify file opening in convert_protocol_to_json.py
common/devtools/convert_protocol_to_json.py
open
function to use the default mode.pdl.py
Code modernization in pdl.py
common/devtools/pdl.py
gen_file.py
Refactor string formatting and file handling in gen_file.py
javascript/private/gen_file.py
webelement.py
Update type hints in webelement.py
py/selenium/webdriver/remote/webelement.py
List
tolist
for Python 3.9+compatibility.
remote_downloads_tests.py
Simplify file opening in remote_downloads_tests.py
py/test/selenium/webdriver/remote/remote_downloads_tests.py
open
function to use the default mode.pinned_browsers.py
Refactor string formatting in pinned_browsers.py
scripts/pinned_browsers.py
update_copyright.py
Simplify file opening in update_copyright.py
scripts/update_copyright.py