tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit bba40dbf5b389da32eef025fd8ea868948eb03e5
parent ac6db2675ca168477e778142ff611977baaa4e0b
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Wed,  7 Jan 2026 07:30:35 +0000

Bug 2008870 - Fix python 3.14 deprecation in configure.py. r=firefox-build-system-reviewers,ahochheiden

configure.py:230: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
      with codecs.open("config.status", "w", "utf-8") as fh:

Differential Revision: https://phabricator.services.mozilla.com/D278072

Diffstat:
Mconfigure.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure.py b/configure.py @@ -2,7 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -import codecs import itertools import logging import os @@ -227,7 +226,7 @@ def config_status(config, execute=True): # Create config.status. Eventually, we'll want to just do the work it does # here, when we're able to skip configure tests/use cached results/not rely # on autoconf. - with codecs.open("config.status", "w", "utf-8") as fh: + with open("config.status", "w", encoding="utf-8") as fh: fh.write( textwrap.dedent( """\