From bfa06cead10d975af27ba0a5dd5900324671270f Mon Sep 17 00:00:00 2001 From: thunderstruck47 Date: Sat, 13 May 2017 16:36:25 +0300 Subject: [PATCH] dont rely on platform specific encoding --- bumblebee/theme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/theme.py b/bumblebee/theme.py index eed2ea7..72a7c0e 100644 --- a/bumblebee/theme.py +++ b/bumblebee/theme.py @@ -109,7 +109,7 @@ class Theme(object): if os.path.isfile(themefile): try: - with open(themefile) as data: + with open(themefile, encoding="utf-8") as data: return json.load(data) except ValueError as exception: raise bumblebee.error.ThemeLoadError("JSON error: {}".format(exception))