]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
default tabsize to 8
authorGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:42:05 +0000 (19:42 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:42:05 +0000 (19:42 +0000)
Lib/string.py
Lib/stringold.py

index 602fe0a4d2c715a6b6999452faa311ae1d71635d..8ad900b99526ecae58d8125c19df2b9e592a6f34 100644 (file)
@@ -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':
index 602fe0a4d2c715a6b6999452faa311ae1d71635d..8ad900b99526ecae58d8125c19df2b9e592a6f34 100644 (file)
@@ -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':