diff options
author | Guido van Rossum <guido@python.org> | 1998-03-26 20:56:10 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-26 20:56:10 +0000 |
commit | e07745ec291c4fe62405986b12f6230fb9f30591 (patch) | |
tree | 3c038fd3e6083f4968a46a7cb99cc295f6111a65 /Lib/string.py | |
parent | 3e415c72f1b876702c7dbeadb23313fb5763094d (diff) | |
download | cpython-e07745ec291c4fe62405986b12f6230fb9f30591.tar.gz |
A few lines were indented using spaces instead of tabs -- fix them.
Diffstat (limited to 'Lib/string.py')
-rw-r--r-- | Lib/string.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/string.py b/Lib/string.py index b2563f9957..f2c37440a6 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -203,7 +203,7 @@ def joinfields(words, sep = ' '): (joinfields and join are synonymous) - """ + """ res = '' for w in words: res = res + (sep + w) @@ -430,7 +430,7 @@ def ljust(s, width): # 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 @@ def rjust(s, width): # 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 @@ def translate(s, table, deletions=""): """ 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: |