Opened 6 years ago

Closed 6 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


The plugin seems to work with recent versions of Trac/Python, but generates deprecation warnings. It looks like the fix is pretty simple:

$ diff
< import hashlib
> import sha
<         sha1hasher = hashlib.sha1()
<         sha1hasher.update(content.encode('utf-8'))
<         key = sha1hasher.hexdigest()
>         key ='utf-8')).hexdigest()

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Kamil Kisiel

Resolution: invalid
Status: newclosed

This was already fixed in the 0.3 release. Please download a more recent version of the plugin.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Kamil Kisiel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.