Opened 4 years ago

Closed 4 years ago

#8472 closed defect (invalid)

Uses deprecated SHA-1 hash API

Reported by: anonymous Owned by: kisielk
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 4 years ago by kisielk

  • Resolution set to invalid
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed The owner will remain kisielk.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.