diff options
Diffstat (limited to 'source/utils.py')
-rwxr-xr-x | source/utils.py | 14 |
1 files changed, 0 insertions, 14 deletions
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. |