summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-10 19:42:05 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-10 19:42:05 (GMT)
commit894a7bb9955233293b263897e52fa401240c030d (patch)
treec458a6084c1a4de88d2ed78cabb85fce5a5f5cd6 /Lib/string.py
parent18596003572b715d57ecb6d357cebc4257c0bb31 (diff)
downloadcpython-894a7bb9955233293b263897e52fa401240c030d.zip
cpython-894a7bb9955233293b263897e52fa401240c030d.tar.gz
cpython-894a7bb9955233293b263897e52fa401240c030d.tar.bz2
default tabsize to 8
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/string.py b/Lib/string.py
index 602fe0a..8ad900b 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -242,7 +242,7 @@ def zfill(x, width):
# Expand tabs in a string.
# Doesn't take non-printing chars into account, but does understand \n.
-def expandtabs(s, tabsize):
+def expandtabs(s, tabsize=8):
res = line = ''
for c in s:
if c == '\t':