Commits

Lucas Taylor  committed 76fd09e

Use hashlib instead of deprecated md5 module

  • Participants
  • Parent commits 518b483

Comments (0)

Files changed (1)

File txGrowl/protocol.py

 See <http://growl.info/> for more information.
 
 """
-import struct, md5
+import struct, hashlib
 
 from twisted.internet.protocol import DatagramProtocol
 from twisted.internet import reactor
     
     def encodePassword(self, data):
         """Return md5 encoded data and password (if present)"""
-        checksum = md5.new()
+        checksum = hashlib.new('md5')
         checksum.update(data)
         if self.password:
            checksum.update(self.password)