Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion yarn_api_client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
from urllib.parse import urlencode

from .errors import APIError, ConfigurationError
import codecs


class Response(object):
def __init__(self, http_response):
self.data = json.load(http_response)
reader = codecs.getreader("utf-8")
self.data = json.load(reader(http_response))


class BaseYarnAPI(object):
Expand Down