[Bug 450458] New: Deprecation Warnings when use yapt/python-twisted
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.
https://bugzilla.novell.com/show_bug.cgi?id=450458 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=450458 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=450458#c1 --- Comment #1 from Jan Matejek <jmatejek@novell.com> 2009-02-26 07:59:33 MST --- fixed in latest python-twisted submitted to factory -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=450458 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=450458#c2 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Jan Matejek <jmatejek@novell.com> 2009-03-30 06:05:32 MDT --- (hmm ... why didn't i mark this as fixed?) -- 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.
participants (1)
-
bugzilla_noreply@novell.com