the md5 module is deprecated; use hashlib instead import md5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyrex (Debian) |
Fix Released
|
Unknown
|
|||
pyrex (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
python-pyrex:
Installed: 0.9.8.5-1ubuntu2
Candidate: 0.9.8.5-1ubuntu2
Version table:
*** 0.9.8.5-1ubuntu2 0
500 http://
100 /var/lib/
When using python-pyrex with python2.6 it gives this warning:
/usr/lib/
Reading the Scanning.py and about the hashlib superseding md5 I found that this can be fixed changing only two lines (also I think is solved in upstream Pyrex 0.9.9)vicm3@
--- Scanning.py 2008-05-10 04:12:45.000000000 -0500
+++ Scanning.py.new 2010-09-15 18:51:44.000000000 -0500
@@ -36,7 +36,7 @@
# Try to calculate a hash code for the given source file.
# Returns an empty string if the file cannot be accessed.
#print "Hashing", path ###
- import md5
+ import hashlib
try:
try:
f = open(path, "rU")
@@ -52,7 +52,7 @@
# tabs by a single space.
import re
text = re.sub("[ \t]+", " ", text)
- hash = md5.new(
+ hash = hashlib.
return hash
def open_pickled_
Closes the warning.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-pyrex 0.9.8.5-1ubuntu2 [modified: usr/share/
ProcVersionSign
Uname: Linux 2.6.32-23-generic i686
NonfreeKernelMo
Architecture: i386
Date: Wed Sep 15 18:48:34 2010
InstallationMedia: Xubuntu 10.04 "Lucid Lynx" - Release i386 (20100429)
PackageArchitec
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: pyrex
tags: | added: patch |
Changed in pyrex (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in pyrex (Debian): | |
status: | Unknown → New |
Changed in pyrex (Debian): | |
status: | New → Fix Released |