Show More
@@ -31,6 +31,10 b' try:' | |||||
31 | from hmac import compare_digest |
|
31 | from hmac import compare_digest | |
32 | except ImportError: |
|
32 | except ImportError: | |
33 | # Python < 2.7.7 |
|
33 | # Python < 2.7.7 | |
|
34 | import warnings | |||
|
35 | warnings.warn("You are using Python older than 2.7.7, please consider " | |||
|
36 | "updating to the latest version as it reduces a possible security" | |||
|
37 | " vulnerability.") | |||
34 | def compare_digest(a,b): |
|
38 | def compare_digest(a,b): | |
35 | return a == b |
|
39 | return a == b | |
36 |
|
40 |
General Comments 0
You need to be logged in to leave comments.
Login now