summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/do.py b/do.py
index e898898..c72cd60 100755
--- a/do.py
+++ b/do.py
@@ -5,7 +5,7 @@ import os
import pwd
import subprocess
from subprocess import PIPE
-from base64 import b64encode
+import hashlib
import os.path as path
import email
from email.policy import default
@@ -276,7 +276,7 @@ for match in tag_iter:
outstr += page1[pos:match.start()]
pos = match.end()
- uid = b64encode((url + frag).encode('UTF-8'))
+ uid = hashlib.md5((url + frag).encode('UTF-8')).hexdigest()
title = comment or url or frag