Fix len(char) assertion typo in libbe.util.utility.underlined()
authorW. Trevor King <wking@drexel.edu>
Sat, 20 Feb 2010 18:28:34 +0000 (13:28 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 20 Feb 2010 18:28:34 +0000 (13:28 -0500)
libbe/util/utility.py

index 92ca0d527b090ad4f0c27441b888099196624ba1..c12e9a247b5fc7c69120dda9665648c2babe701a 100644 (file)
@@ -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: