-
- Downloads
Bug 1769631 - Remove 'U' from 'mode' parameters for various 'open' calls to...
Bug 1769631 - Remove 'U' from 'mode' parameters for various 'open' calls to ensure Python3.11 compatibility r=firefox-build-system-reviewers,glandium a=RyanVM The 'U' flag represents "universal newline". It has been deprecated since Python3.3. Since then "universal newline" is the default when a file is opened in text mode (not bytes). In Python3.11 using the 'U' flag throws errors. There should be no harm in removing 'U' from 'open' everywhere it is used, and doing allows the use of Python3.11. For more reading see: https://docs.python.org/3.11/whatsnew/3.11.html#changes-in-the-python-api Differential Revision: https://phabricator.services.mozilla.com/D147721
parent
e8921475
Showing
- dom/base/usecounters.py 1 addition, 1 deletiondom/base/usecounters.py
- python/mozbuild/mozbuild/action/process_define_files.py 1 addition, 1 deletionpython/mozbuild/mozbuild/action/process_define_files.py
- python/mozbuild/mozbuild/backend/base.py 1 addition, 1 deletionpython/mozbuild/mozbuild/backend/base.py
- python/mozbuild/mozbuild/preprocessor.py 3 additions, 3 deletionspython/mozbuild/mozbuild/preprocessor.py
- python/mozbuild/mozbuild/util.py 1 addition, 1 deletionpython/mozbuild/mozbuild/util.py
- python/mozbuild/mozpack/files.py 2 additions, 2 deletionspython/mozbuild/mozpack/files.py