Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2009 10:08:29 GMT
From:      kevin <kevinxlinuz@163.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/141338: py-xmpppy need updated
Message-ID:  <200912101008.nBAA8T8H081791@www.freebsd.org>
Resent-Message-ID: <200912101010.nBAAA6JG067528@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912101008.nBAA8T8H081791>