From: Guido van Rossum Date: Thu, 10 Aug 1995 19:42:05 +0000 (+0000) Subject: default tabsize to 8 X-Git-Tag: v1.3b1~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=894a7bb9955233293b263897e52fa401240c030d;p=thirdparty%2FPython%2Fcpython.git default tabsize to 8 --- diff --git a/Lib/string.py b/Lib/string.py index 602fe0a4d2c7..8ad900b99526 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': diff --git a/Lib/stringold.py b/Lib/stringold.py index 602fe0a4d2c7..8ad900b99526 100644 --- a/Lib/stringold.py +++ b/Lib/stringold.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':