Fixed the deprecation warning about using md5 module,
authorBjoern Haeuser
Sat Apr 04 17:40:32 2009 +0200 (2009-04-04)
changeset 41832e72fc363066
parent 4182 69b5347d8262
child 4184 2b3a0b8941dd
Fixed the deprecation warning about using md5 module,
switched to the suggested hashlib module
Bindings/python/Growl.py
     1.1 --- a/Bindings/python/Growl.py	Wed Mar 25 04:11:45 2009 -0700
     1.2 +++ b/Bindings/python/Growl.py	Sat Apr 04 17:40:32 2009 +0200
     1.3 @@ -14,7 +14,7 @@
     1.4  import _growl
     1.5  import types
     1.6  import struct
     1.7 -import md5
     1.8 +import hashlib
     1.9  import socket
    1.10  
    1.11  GROWL_UDP_PORT=9887
    1.12 @@ -129,7 +129,7 @@
    1.13  		return self.encodePassword(data)
    1.14  
    1.15  	def encodePassword(self, data):
    1.16 -		checksum = md5.new()
    1.17 +		checksum = hashlib.md5()
    1.18  		checksum.update(data)
    1.19  		if self.password:
    1.20  		   checksum.update(self.password)