Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'model.py')
-rw-r--r--model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.py b/model.py
index 48e7bdb..38154c4 100644
--- a/model.py
+++ b/model.py
@@ -17,9 +17,9 @@
#
import cjson
-import sha
import gobject
import base64
+from hashlib import sha1
class Model(gobject.GObject):
@@ -45,7 +45,7 @@ class Model(gobject.GObject):
break
self.data['shared_links'].insert(index,
- {'hash':sha.new(str(url)).hexdigest(),
+ {'hash':sha1.new(str(url)).hexdigest(),
'url':str(url), 'title':str(title),
'thumb':base64.b64encode(thumb),
'owner':str(owner),