Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-07-11 13:12:24 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-07-11 13:12:24 (GMT)
commit0facb18accc6672a85894dd2e3c20452a186e881 (patch)
tree578972a5cf1c5f5196174751c7515c6b20edbf09 /extensions
parentbffb54971fc31644baa1e3f98f9769b5158929b5 (diff)
md5 and sha module will be deprecated in python 2.6 #266
Diffstat (limited to 'extensions')
-rw-r--r--extensions/deviceicon/network.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/deviceicon/network.py b/extensions/deviceicon/network.py
index 0abf25e..94c3bc1 100644
--- a/extensions/deviceicon/network.py
+++ b/extensions/deviceicon/network.py
@@ -17,7 +17,7 @@
from gettext import gettext as _
import logging
-import sha
+import hashlib
import socket
import struct
@@ -310,7 +310,7 @@ class WirelessDeviceView(ToolButton):
if 'Frequency' in properties:
self._frequency = properties['Frequency']
- sh = sha.new()
+ sh = hashlib.sha1()
data = self._name + hex(self._flags)
sh.update(data)
h = hash(sh.digest())