From 432ec19d0bc86ff3f0593b63b9abc02fbf8f95ea Mon Sep 17 00:00:00 2001 From: Timo Koch <timokoch@math.uio.no> Date: Sat, 21 Aug 2021 16:33:07 +0000 Subject: [PATCH] [python] Fix flake8 warning about missing encoding --- python/dumux/common/properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dumux/common/properties.py b/python/dumux/common/properties.py index 55d5d0a5ac..545d15a0a2 100644 --- a/python/dumux/common/properties.py +++ b/python/dumux/common/properties.py @@ -151,7 +151,7 @@ def predefinedProperties(): propertiesHeader = os.path.abspath( os.path.dirname(__file__) + "/../../../../dumux/common/properties.hh" ) - with open(propertiesHeader) as header: + with open(propertiesHeader, encoding="utf-8") as header: properties = [] for line in header: if line.startswith("struct"): -- GitLab