From 67d7e8d590c0cff3da36ac0e081646f051cc7f0f Mon Sep 17 00:00:00 2001 From: Benny Elgazar Date: Fri, 13 Apr 2018 00:06:24 +0300 Subject: [PATCH] Fix Unicode problem (#1562) --- moto/core/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/core/responses.py b/moto/core/responses.py index 278a24dc4..ca5b9f7d2 100644 --- a/moto/core/responses.py +++ b/moto/core/responses.py @@ -574,7 +574,7 @@ class AWSServiceSpec(object): def __init__(self, path): self.path = resource_filename('botocore', path) - with open(self.path) as f: + with open(self.path, "rb") as f: spec = json.load(f) self.metadata = spec['metadata'] self.operations = spec['operations']