From 06b18fe94a6c8cafad6d06de2af64ac44d3c7d9b Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 1 Jun 2022 09:49:12 +0200 Subject: [PATCH] [utils] Disable strict mode for registry parsing Fixes #407 --- legendary/utils/wine_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/utils/wine_helpers.py b/legendary/utils/wine_helpers.py index 06d253a..1fd4fc3 100644 --- a/legendary/utils/wine_helpers.py +++ b/legendary/utils/wine_helpers.py @@ -6,7 +6,7 @@ logger = logging.getLogger('WineHelpers') def read_registry(wine_pfx): - reg = configparser.ConfigParser(comment_prefixes=(';', '#', '/', 'WINE'), allow_no_value=True) + reg = configparser.ConfigParser(comment_prefixes=(';', '#', '/', 'WINE'), allow_no_value=True, strict=False) reg.optionxform = str reg.read(os.path.join(wine_pfx, 'user.reg')) return reg