Browse Source

fix generate_session_id() in py3

hexlify returns bytes apperantly ¯\_(ツ)_/¯
pull/35/merge
Rossen Georgiev 8 years ago
parent
commit
2230db4487
  1. 2
      steam/util/web.py

2
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')

Loading…
Cancel
Save