aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-04 10:07:24 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-04 10:07:24 +0300
commit98d34e9f37e924266f59352c3197a761a7389b15 (patch)
tree91df5e935b8a8488366edee51ff5ba64895ca380 /gsxws.py
parent5dda20f7f03e1987033fa1a021197335617b23d3 (diff)
downloadpy-gsxws-98d34e9f37e924266f59352c3197a761a7389b15.tar.gz
py-gsxws-98d34e9f37e924266f59352c3197a761a7389b15.tar.bz2
py-gsxws-98d34e9f37e924266f59352c3197a761a7389b15.zip
Convert to hashlib
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gsxws.py b/gsxws.py
index 5f9d3ee..16734af 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -28,13 +28,12 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA
import re
import os
-import md5
import json
import suds
import base64
-import logging
import urllib
import urlparse
+import hashlib
import tempfile
from suds.client import Client
@@ -928,7 +927,8 @@ def connect(
SESSION = {}
LOCALE = LOCALE
- cache_key = md5.new(user_id + str(sold_to)).hexdigest()
+ md5 = hashlib.md5()
+ cache_key = md5.update(user_id + str(sold_to)).hexdigest()
if CACHE.get(cache_key) is not None:
SESSION = CACHE.get(cache_key)