Skip to content

Commit a67c1b9

Browse files
committed
Fix fuselage's runner on py3
1 parent a8a63fc commit a67c1b9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fuselage
55
0.0.6 (unreleased)
66
------------------
77

8-
- Nothing changed yet.
8+
- Fix the runner on py3. json.loads won't accept bytes.
99

1010

1111
0.0.5 (2015-05-11)

fuselage/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from fuselage import log, bundle, error, event, platform
2222
from fuselage.error import NothingChanged
23+
from fuselage.utils import force_str
2324

2425
logger = logging.getLogger(__name__)
2526

@@ -108,5 +109,5 @@ def get_resources(self):
108109
except IOError:
109110
raise error.ParseError("Bundle is missing resources.json")
110111
b = bundle.ResourceBundle()
111-
b.loads(resources_json)
112+
b.loads(force_str(resources_json))
112113
return b

0 commit comments

Comments
 (0)