[tor-bugs] #9988 [BridgeDB]: Refactor BridgeDB's use of `sha` module to use `hashlib` instead.

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Oct 17 04:34:29 UTC 2013


#9988: Refactor BridgeDB's use of `sha` module to use `hashlib` instead.
----------------------+----------------------
 Reporter:  isis      |          Owner:  isis
     Type:  defect    |         Status:  new
 Priority:  trivial   |      Milestone:
Component:  BridgeDB  |        Version:
 Keywords:  bridgedb  |  Actual Points:
Parent ID:            |         Points:
----------------------+----------------------
 Everytime [https://travis-
 ci.org/isislovecruft/bridgedb/jobs/12651411#L1143 the `sha` module is
 imported], the following `DeprecationWarning` occurs:

 {{{
 DeprecationWarning: the sha module is deprecated; use the hashlib module
 instead
 }}}

 We should probably heed its advice. Unless something strange is being done
 somewhere with the `sha` module, we should pretty much be able to do
 `'s/sha\.sha\(/hashlib\.sha\(/'`.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9988>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list