From ba14debbde6cde5d77f5d57e67d4bef341042857 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Tue, 1 May 2012 14:10:25 +0200 Subject: urlsafe_b64encode is replaced by SHA1 for id of articles. --- source/utils.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source/utils.py') diff --git a/source/utils.py b/source/utils.py index d1d2c684..da68550b 100755 --- a/source/utils.py +++ b/source/utils.py @@ -64,20 +64,6 @@ url_finders = [ \ re.compile("'\\<((mailto:)|)[-A-Za-z0-9\\.]+@[-A-Za-z0-9\\.]+"), \ ] -from base64 import urlsafe_b64encode, urlsafe_b64decode - -def uri_b64encode(s): - """ - Encode an URI in base 64 and remove the final '='. - """ - return urlsafe_b64encode(s).strip('=') - -def uri_b64decode(s): - """ - Decode a base 64 encoded URI. - """ - return urlsafe_b64decode(s + '=' * (4 - len(s) % 4)) - def detect_url_errors(list_of_urls): """ Detect URL errors. -- cgit