From 97e861a922be99e7cfd067364051808b2e5a6c7b Mon Sep 17 00:00:00 2001 From: Dumitru Uzun Date: Sat, 21 Feb 2026 08:19:50 +0200 Subject: [PATCH] Remove user agent setting for URLopener MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove setting user agent for URLopener. The Variables.userAgent attribute doesn't even exist anymore, and URLopener was removed in Python 3.13. This line was setting a user-agent on a long-deprecated class. The simplest fix is to remove it — it's dead code. --- python/setupwindow/POL_SetupFrame.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/setupwindow/POL_SetupFrame.py b/python/setupwindow/POL_SetupFrame.py index 33d73d38a..3a9c9bd57 100755 --- a/python/setupwindow/POL_SetupFrame.py +++ b/python/setupwindow/POL_SetupFrame.py @@ -33,7 +33,6 @@ import lib.playonlinux as playonlinux lib.lng.Lang() -urllib.request.URLopener.version = Variables.userAgent # Arg ... from ui.PlayOnLinuxWindow import PlayOnLinuxWindow from setupwindow.Downloader import Downloader