default tabsize to 8

This commit is contained in:
Guido van Rossum 1995-08-10 19:42:05 +00:00
parent 1859600357
commit 894a7bb995
2 changed files with 2 additions and 2 deletions

View 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':

View 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':