Modify ↓
Opened 14 years ago
Closed 14 years ago
#8472 closed defect (invalid)
Uses deprecated SHA-1 hash API
Reported by: | anonymous | Owned by: | Kamil Kisiel |
---|---|---|---|
Priority: | normal | Component: | TracMathPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
The plugin seems to work with recent versions of Trac/Python, but generates deprecation warnings. It looks like the fix is pretty simple:
$ diff tracmath.py tracmath.py.orig 8c8 < import hashlib --- > import sha 145,147c145 < sha1hasher = hashlib.sha1() < sha1hasher.update(content.encode('utf-8')) < key = sha1hasher.hexdigest() --- > key = sha.new(content.encode('utf-8')).hexdigest()
Attachments (0)
Note: See
TracTickets for help on using
tickets.
This was already fixed in the 0.3 release. Please download a more recent version of the plugin.