https://bugzilla.novell.com/show_bug.cgi?id=450458 Summary: Deprecation Warnings when use yapt/python-twisted Product: openSUSE 11.1 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Other AssignedTo: jmatejek@novell.com ReportedBy: mvyskocil@novell.com QAContact: qa@suse.de Found By: Development import md5 produces some Deprecation Warnings when use yapt/python-twisted. The following patch will fix this: diff --git a/internet/_sslverify.py b/internet/_sslverify.py index 32c4173..ba90f9a 100644 --- a/internet/_sslverify.py +++ b/internet/_sslverify.py @@ -1,7 +1,11 @@ # -*- test-case-name: twisted.test.test_sslverify -*- # Copyright 2005 Divmod, Inc. See LICENSE file for details -import itertools, md5 +import itertools +try: + import hashlib as md5 +except ImportError: + import md5 from OpenSSL import SSL, crypto from twisted.python import reflect, util diff --git a/spread/pb.py b/spread/pb.py index 31a8117..d2566c8 100644 --- a/spread/pb.py +++ b/spread/pb.py @@ -61,7 +61,10 @@ try: except ImportError: import StringIO -import md5 +try: + import hashlib as md5 +except ImportError: + import md5 import random import new import types -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.