mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
default tabsize to 8
This commit is contained in:
@@ -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':
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user