projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80cf789
)
encode.py: remove unused pad() code
author
Brian Warner
<warner@allmydata.com>
Wed, 18 Apr 2007 04:22:32 +0000
(21:22 -0700)
committer
Brian Warner
<warner@allmydata.com>
Wed, 18 Apr 2007 04:22:32 +0000
(21:22 -0700)
src/allmydata/encode.py
patch
|
blob
|
history
diff --git
a/src/allmydata/encode.py
b/src/allmydata/encode.py
index 3731999da026f8b968712e11cc61a90dd7296600..9cdb87510fd088417df7f84df67c3a6540c8f263 100644
(file)
--- a/
src/allmydata/encode.py
+++ b/
src/allmydata/encode.py
@@
-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