[py] really drop python<=3.7 support#13947
Conversation
Filter all python code over `pupgrade --py38-plus`. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
|
PR Description updated to latest commit (363512f)
|
PR Review 🔍
|
PR Code Suggestions ✨
|
|
Signed |
|
@kloczek this is not passing our lint tests, can you please update it? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #13947 +/- ##
==========================================
+ Coverage 58.48% 59.32% +0.84%
==========================================
Files 86 91 +5
Lines 5270 5883 +613
Branches 220 266 +46
==========================================
+ Hits 3082 3490 +408
- Misses 1968 2127 +159
- Partials 220 266 +46 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
|
These changes have already essentially been done in #15784 |
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
formatmethod for string formatting across various scripts and modules.Changes walkthrough 📝
convert_protocol_to_json.py
Simplify file opening in convert_protocol_to_json.pycommon/devtools/convert_protocol_to_json.py
openfunction to use the default mode.pdl.py
Code modernization in pdl.pycommon/devtools/pdl.py
gen_file.py
Refactor string formatting and file handling in gen_file.pyjavascript/private/gen_file.py
webelement.py
Update type hints in webelement.pypy/selenium/webdriver/remote/webelement.py
Listtolistfor Python 3.9+compatibility.
remote_downloads_tests.py
Simplify file opening in remote_downloads_tests.pypy/test/selenium/webdriver/remote/remote_downloads_tests.py
openfunction to use the default mode.pinned_browsers.py
Refactor string formatting in pinned_browsers.pyscripts/pinned_browsers.py
update_copyright.py
Simplify file opening in update_copyright.pyscripts/update_copyright.py