mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
encode.py: remove unused pad() code
This commit is contained in:
parent
80cf789817
commit
85b36e348b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user