aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-04 10:10:57 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-04 10:10:57 +0300
commit3f924e3e2ef7a1c371901bb84705117627492f02 (patch)
treef76212d79497692340fed189f7abf31916568851 /gsxws.py
parent98d34e9f37e924266f59352c3197a761a7389b15 (diff)
downloadpy-gsxws-3f924e3e2ef7a1c371901bb84705117627492f02.tar.gz
py-gsxws-3f924e3e2ef7a1c371901bb84705117627492f02.tar.bz2
py-gsxws-3f924e3e2ef7a1c371901bb84705117627492f02.zip
Convert to hashlib
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws.py b/gsxws.py
index 16734af..b0ec1e3 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -928,7 +928,8 @@ def connect(
LOCALE = LOCALE
md5 = hashlib.md5()
- cache_key = md5.update(user_id + str(sold_to)).hexdigest()
+ md5.update(user_id + str(sold_to))
+ cache_key = md5.hexdigest()
if CACHE.get(cache_key) is not None:
SESSION = CACHE.get(cache_key)