aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
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)