From 1b1a39224d037a69cc0e5a2a53bf978966ba433f Mon Sep 17 00:00:00 2001 From: Juan Manuel Garcia Date: Thu, 11 Aug 2022 01:16:14 -0300 Subject: [PATCH] support python 3 encode data --- pyfb/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfb/client.py b/pyfb/client.py index b6d6552..18dc327 100755 --- a/pyfb/client.py +++ b/pyfb/client.py @@ -56,7 +56,7 @@ def _make_request(self, url, data=None): if not data: data = None - return urlopen(url, data).read() + return urlopen(url, data.encode("utf-8")).read() def _make_auth_request(self, path, extra_params=None, **data): """