From d72008ae9cf48036ea090189002d2137bf427ec5 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Wed, 24 Jan 2024 22:58:56 +0100 Subject: [PATCH] Update user-agent (#283) Update user-agent to the latest Firefox ESR. --- src/common/endoflife.py | 3 --- src/common/http.py | 2 +- src/common/releasedata.py | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/endoflife.py b/src/common/endoflife.py index 11a11615..6d83349c 100644 --- a/src/common/endoflife.py +++ b/src/common/endoflife.py @@ -7,9 +7,6 @@ from pathlib import Path import frontmatter from liquid import Template -# Do not update the format: it's also used to declare groups in the GitHub Actions logs. -logging.basicConfig(format="%(message)s", level=logging.INFO) - # Handle versions having at least 2 digits (ex. 1.2) and at most 4 digits (ex. 1.2.3.4), with an optional leading "v". # Major version must be >= 1. DEFAULT_VERSION_REGEX = r"^v?(?P[1-9]\d*)\.(?P\d+)(\.(?P\d+)(\.(?P\d+))?)?$" diff --git a/src/common/http.py b/src/common/http.py index d58d6224..33f9fdfc 100644 --- a/src/common/http.py +++ b/src/common/http.py @@ -8,7 +8,7 @@ from requests_futures.sessions import FuturesSession from urllib3.util import Retry # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent. -USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0' +USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0' def fetch_urls(urls: list[str], data: any = None, headers: dict[str, str] = None, diff --git a/src/common/releasedata.py b/src/common/releasedata.py index 8f53bd1f..91fa36ff 100644 --- a/src/common/releasedata.py +++ b/src/common/releasedata.py @@ -4,6 +4,9 @@ import os from datetime import datetime, timezone from pathlib import Path +# Do not update the format: it's also used to declare groups in the GitHub Actions logs. +logging.basicConfig(format="%(message)s", level=logging.INFO) + VERSIONS_PATH = Path(os.environ.get("VERSIONS_PATH", "releases"))