mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
default tabsize to 8
This commit is contained in:
parent
1859600357
commit
894a7bb995
2 changed files with 2 additions and 2 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue