diff options
author | Filipp Lepalaan <f@0x00.co> | 2013-04-04 10:07:24 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@0x00.co> | 2013-04-04 10:07:24 +0300 |
commit | 98d34e9f37e924266f59352c3197a761a7389b15 (patch) | |
tree | 91df5e935b8a8488366edee51ff5ba64895ca380 /gsxws.py | |
parent | 5dda20f7f03e1987033fa1a021197335617b23d3 (diff) | |
download | py-gsxws-98d34e9f37e924266f59352c3197a761a7389b15.tar.gz py-gsxws-98d34e9f37e924266f59352c3197a761a7389b15.tar.bz2 py-gsxws-98d34e9f37e924266f59352c3197a761a7389b15.zip |
Convert to hashlib
Diffstat (limited to 'gsxws.py')
-rwxr-xr-x | gsxws.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |