ports/141338: py-xmpppy need updated
kevin
kevinxlinuz at 163.com
Thu Dec 10 10:10:06 UTC 2009
>Number: 141338
>Category: ports
>Synopsis: py-xmpppy need updated
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 10 10:10:06 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: kevin
>Release: 9.0current
>Organization:
163.org
>Environment:
FreeBSD laptop.163.org 9.0-CURRENT FreeBSD 9.0-CURRENT #4 r200091: Fri Dec 4 14:03:47 CST 2009 root at laptop.163.org:/usr/obj/usr/home/datastream/freebsd/sys/G9laptop amd64
>Description:
/usr/local/lib/python2.6/site-packages/xmpp/auth.py:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha,base64,random,dispatcher,re
/usr/local/lib/python2.6/site-packages/xmpp/auth.py:26: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
>How-To-Repeat:
import xmpp in python2.6 then use it
>Fix:
--- auth.py 2009-12-10 18:07:41.424877838 +0800
+++ /usr/local/lib/python2.6/site-packages/xmpp/auth.py 2009-12-10 18:06:49.983623652 +0800
@@ -21,9 +21,9 @@
from protocol import *
from client import PlugIn
-import sha,base64,random,dispatcher,re
+import base64,random,dispatcher,re
-import md5
+import hashlib
def HH(some): return md5.new(some).hexdigest()
def H(some): return md5.new(some).digest()
def C(some): return ':'.join(some)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list