Skip to content

Commit 24dea74

Browse files
committed
_backendrest: Fix json parsing on python 3.4
encoding() is unnecessary here and bytes() is rejected on python3.4 Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent fb75633 commit 24dea74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bugzilla/_backendrest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, url, bugzillasession):
3535

3636
def _handle_response(self, response):
3737
response.raise_for_status()
38-
text = response.text.encode("utf-8")
38+
text = response.text
3939

4040
try:
4141
ret = dict(json.loads(text))

0 commit comments

Comments
 (0)