diff configmix/__init__.py @ 166:b5ce9a8461bf

Use the filesystem encoding explicitely where appropriate.
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 14 Mar 2019 01:35:16 +0100
parents 6ca90e80f4f4
children d8155c429171
line wrap: on
line diff
--- a/configmix/__init__.py	Thu Mar 14 00:21:30 2019 +0100
+++ b/configmix/__init__.py	Thu Mar 14 01:35:16 2019 +0100
@@ -21,7 +21,7 @@
 
 import copy
 
-from .compat import u
+from .compat import u, u2fs
 from .config import Configuration
 
 
@@ -73,7 +73,7 @@
 
 def _load_yaml(filename):
     from . import yaml
-    with open(filename, "rb") as yf:
+    with open(u2fs(filename), "rb") as yf:
         return yaml.safe_load(yf)