diff -Nru dput-0.9.2.37ubuntu2/debian/changelog dput-0.9.2.37ubuntu3/debian/changelog --- dput-0.9.2.37ubuntu2/debian/changelog 2009-02-10 16:02:28.000000000 +0100 +++ dput-0.9.2.37ubuntu3/debian/changelog 2009-03-02 12:36:17.000000000 +0100 @@ -1,3 +1,9 @@ +dput (0.9.2.37ubuntu3) jaunty; urgency=low + + * Fix deprecation warning with python 2.6 (lp: #336601) + + -- Michael Bienia Mon, 02 Mar 2009 12:35:23 +0100 + dput (0.9.2.37ubuntu2) jaunty; urgency=low * dput: diff -Nru dput-0.9.2.37ubuntu2/dput dput-0.9.2.37ubuntu3/dput --- dput-0.9.2.37ubuntu2/dput 2009-02-10 16:04:34.000000000 +0100 +++ dput-0.9.2.37ubuntu3/dput 2009-03-02 11:37:39.000000000 +0100 @@ -18,7 +18,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import os, sys, string, re, glob, signal -import pwd, stat, md5, sha, rfc822 +import pwd, stat, rfc822 +from hashlib import md5, sha1 # Now import our modules import ConfigParser @@ -170,9 +171,9 @@ if hash == 'md5': hash_type = md5 else: - hash_type = sha + hash_type = sha1 - check_obj = hash_type.new() + check_obj = hash_type() for line in file_to_test.readlines(): check_obj.update(line)