Commit 00c4bd3c authored by Andreas Jung's avatar Andreas Jung

using hashlib.sha1 if available in order to avoid DeprecationWarning

under Python 2.6
parent c3f138c4
......@@ -31,7 +31,10 @@ try:
import hmac
except ImportError:
import _hmac as hmac
import sha
try:
from hashlib import sha1 as sha
except ImportError:
import sha
import socket
import struct
import threading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment