Skip to content

Commit 145d229

Browse files
committed
Fixed a deprecation warning pointed out by admp on GitHub.
1 parent 34c1c06 commit 145d229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def sign(self, request, consumer, token):
692692

693693
# HMAC object.
694694
try:
695-
import hashlib.sha1 as sha # 2.5
695+
from hashlib import sha1 as sha
696696
except ImportError:
697697
import sha # Deprecated
698698

0 commit comments

Comments
 (0)