From 2230db4487a71dde203e9714186861e8e1e8063c Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Thu, 22 Dec 2016 01:53:29 +0000 Subject: [PATCH] fix generate_session_id() in py3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hexlify returns bytes apperantly ¯\_(ツ)_/¯ --- steam/util/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/util/web.py b/steam/util/web.py index 33c4934..4d042ba 100644 --- a/steam/util/web.py +++ b/steam/util/web.py @@ -21,4 +21,4 @@ def generate_session_id(): :returns: session id :rtype: :class:`str` """ - return hexlify(sha1_hash(random_bytes(32)))[:32] + return hexlify(sha1_hash(random_bytes(32)))[:32].decode('ascii')