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)

Change History (1)

comment:1 Changed 14 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
Action
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.