[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-115.11.0esr-13.5-1] Bug 1858056 - Favor RawConfigParser.read_file instead of deprecated readfp r=saschanaz

richard (@richard) git at gitlab.torproject.org
Wed May 29 10:24:18 UTC 2024



richard pushed to branch base-browser-115.11.0esr-13.5-1 at The Tor Project / Applications / Tor Browser


Commits:
d4e0350b by Henry Wilkes at 2024-05-29T10:20:41+00:00
Bug 1858056 - Favor RawConfigParser.read_file instead of deprecated readfp r=saschanaz

readfp is deprecated since Python 3.2

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

- - - - -


2 changed files:

- python/mach/mach/config.py
- testing/web-platform/unittestrunner.py


Changes:

=====================================
python/mach/mach/config.py
=====================================
@@ -309,7 +309,7 @@ class ConfigSettings(collections.abc.Mapping):
         """Load config data by reading file objects."""
 
         for fp in fps:
-            self._config.readfp(fp)
+            self._config.read_file(fp)
 
     def write(self, fh):
         """Write the config to a file object."""


=====================================
testing/web-platform/unittestrunner.py
=====================================
@@ -49,7 +49,7 @@ class ReplaceRequirements(object):
         parser = configparser.ConfigParser()
         path = os.path.join(self.tox_path, "tox.ini")
         with open(path) as f:
-            parser.readfp(f)
+            parser.read_file(f)
         deps = parser.get("testenv", "deps")
         dep_re = re.compile("(?:.*:\s*)?-r(.*)")
 



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/d4e0350b5961110c0447b4cd82b788f05acb330d

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/d4e0350b5961110c0447b4cd82b788f05acb330d
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240529/9516112d/attachment-0001.htm>


More information about the tbb-commits mailing list