summaryrefslogtreecommitdiffstats
path: root/Lib/stringold.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-26 20:56:10 (GMT)
committerGuido van Rossum <guido@python.org>1998-03-26 20:56:10 (GMT)
commit8ca842066c947179892d50bf17b57943e7e5cd6b (patch)
tree36f095712bb110abdb9d129e8a59a09e4ce8d087 /Lib/stringold.py
parentfa6e254b34b7a0f85cb34a9fd99b5a6400714940 (diff)
downloadcpython-8ca842066c947179892d50bf17b57943e7e5cd6b.zip
cpython-8ca842066c947179892d50bf17b57943e7e5cd6b.tar.gz
cpython-8ca842066c947179892d50bf17b57943e7e5cd6b.tar.bz2
A few lines were indented using spaces instead of tabs -- fix them.
Diffstat (limited to 'Lib/stringold.py')
-rw-r--r--Lib/stringold.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/stringold.py b/Lib/stringold.py
index b2563f9..f2c3744 100644
--- a/Lib/stringold.py
+++ b/Lib/stringold.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: