encode.py: remove unused pad() code

This commit is contained in:
Brian Warner 2007-04-17 21:22:32 -07:00
parent 80cf789817
commit 85b36e348b

View File

@ -58,17 +58,6 @@ hash tree is put into the URI.
"""
def pad(s, l, c='\x00'):
"""
Return string s with enough chars c appended to it to make its length be
an even multiple of l bytes.
@param s the original string
@param l the length of the resulting padded string in bytes
@param c the pad char
"""
return s + c * mathutil.pad_size(len(s), l)
KiB=1024
MiB=1024*KiB
GiB=1024*MiB