1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-01-10 21:54:11 +01:00

Removed unused url_slash_cleaner

This commit is contained in:
2020-07-13 20:31:40 +02:00
parent 3e5e68d886
commit a618f929a8

View File

@@ -323,13 +323,6 @@ def force_unicode(obj, enc=constants_old.preferred_encoding):
return obj
def url_slash_cleaner(url):
'''
Removes redundant /'s from url's.
'''
return re.sub(r'(?<!:)/{2,}', '/', url)
def human_readable(size, sep=' '):
""" Convert a size in bytes into a human readable form """
divisor, suffix = 1, "B"