1 Index: Hellanzb/Growl.py
2 ===================================================================
3 --- Hellanzb/Growl.py (Revision 1094)
4 +++ Hellanzb/Growl.py (Arbeitskopie)
6 __contributors__ = "Ingmar J Stein (Growl Team)"
11 +# The md5 module has been deprecated as of Python 2.6.
13 + from hashlib import md5
17 from socket import AF_INET, SOCK_DGRAM, socket
22 for default in self.defaults:
23 self.data += struct.pack("B", default)
24 - self.checksum = md5.new()
25 + self.checksum = md5()
26 self.checksum.update(self.data)
28 self.checksum.update(self.password)
30 self.data += self.title
31 self.data += self.description
32 self.data += self.application
33 - self.checksum = md5.new()
34 + self.checksum = md5()
35 self.checksum.update(self.data)
37 self.checksum.update(password)
38 Index: Hellanzb/Util.py
39 ===================================================================
40 --- Hellanzb/Util.py (Revision 1094)
41 +++ Hellanzb/Util.py (Arbeitskopie)
44 class FatalError(Exception):
45 """ An error that will cause the program to exit """
46 - def __init__(self, message):
47 - self.args = [message]
48 - self.message = message
50 class EmptyForThisPool(Empty):
51 """ The queue is empty in terms of our current serverPool, but there are still segments to
52 Index: Hellanzb/HellaXMLRPC/HtPasswdAuth.py
53 ===================================================================
54 --- Hellanzb/HellaXMLRPC/HtPasswdAuth.py (Revision 1094)
55 +++ Hellanzb/HellaXMLRPC/HtPasswdAuth.py (Arbeitskopie)
57 (c) Copyright 2005 Philip Jenvey
62 +# The md5 module has been deprecated as of Python 2.6.
64 + from hashlib import md5
68 from twisted.web import static
69 from twisted.web.resource import Resource
79 self.passwordDigest = m.digest()
81 def authenticateUser(self, request):
82 username, password = request.getUser(), request.getPassword()
88 authenticated = username == self.user and self.passwordDigest == m.digest()