projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b356b3a
)
Fix len(char) assertion typo in libbe.util.utility.underlined()
author
W. Trevor King
<wking@drexel.edu>
Sat, 20 Feb 2010 18:28:34 +0000
(13:28 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 20 Feb 2010 18:28:34 +0000
(13:28 -0500)
libbe/util/utility.py
patch
|
blob
|
history
diff --git
a/libbe/util/utility.py
b/libbe/util/utility.py
index 92ca0d527b090ad4f0c27441b888099196624ba1..c12e9a247b5fc7c69120dda9665648c2babe701a 100644
(file)
--- a/
libbe/util/utility.py
+++ b/
libbe/util/utility.py
@@
-241,7
+241,7
@@
def underlined(string, char='='):
>>> underlined("Underlined String")
'Underlined String\\n================='
"""
- assert len(char) ==
0
, char
+ assert len(char) ==
1
, char
return '%s\n%s' % (string, char*len(string))
if libbe.TESTING == True: