Mercurial > cpython-lru_cache-weakref
diff Lib/string.py @ 7752:b4b0e4e759c5 legacy-trunk
A few lines were indented using spaces instead of tabs -- fix them.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 26 Mar 1998 20:56:10 +0000 |
| parents | 744e2b68f3b6 |
| children | 9172931fd80a |
line wrap: on
line diff
--- a/Lib/string.py Thu Mar 26 20:23:01 1998 +0000 +++ b/Lib/string.py Thu Mar 26 20:56:10 1998 +0000 @@ -203,7 +203,7 @@ (joinfields and join are synonymous) - """ + """ res = '' for w in words: res = res + (sep + w) @@ -430,7 +430,7 @@ # Right-justify a string def rjust(s, width): - """rjust(s, width) -> string + """rjust(s, width) -> string Return a right-justified version of s, in a field of the specified width, padded with spaces as needed. The string is @@ -443,7 +443,7 @@ # Center a string def center(s, width): - """center(s, width) -> string + """center(s, width) -> string Return a center version of s, in a field of the specified width. padded with spaces as needed. The string is never @@ -508,7 +508,8 @@ """ if type(table) != type('') or len(table) != 256: - raise TypeError, "translation table must be 256 characters long" + raise TypeError, \ + "translation table must be 256 characters long" res = "" for c in s: if c not in deletions:
