Commit 0c9e571a authored by Andreas Jung's avatar Andreas Jung

using hashlib.sha1 if available in order to avoid DeprecationWarning

under Python 2.6
parent ae33d3a4
...@@ -31,7 +31,10 @@ try: ...@@ -31,7 +31,10 @@ try:
import hmac import hmac
except ImportError: except ImportError:
import _hmac as hmac import _hmac as hmac
import sha try:
from hashlib import sha1 as sha
except ImportError:
import sha
import socket import socket
import struct import struct
import threading 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